mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7176] Implement full work priest 47580 and ranks
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
be736100cb
commit
20ea42e0db
3 changed files with 51 additions and 1 deletions
|
|
@ -2220,6 +2220,28 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SPELLFAMILY_PRIEST:
|
||||||
|
{
|
||||||
|
// Pain and Suffering
|
||||||
|
if( m_spellProto->SpellIconID == 2874 && m_target->GetTypeId()==TYPEID_PLAYER )
|
||||||
|
{
|
||||||
|
if(apply)
|
||||||
|
{
|
||||||
|
// Reduce backfire damage (dot damage) from Shadow Word: Death
|
||||||
|
SpellModifier *mod = new SpellModifier;
|
||||||
|
mod->op = SPELLMOD_DOT;
|
||||||
|
mod->value = m_modifier.m_amount;
|
||||||
|
mod->type = SPELLMOD_PCT;
|
||||||
|
mod->spellId = GetId();
|
||||||
|
mod->mask = 0x0000000200000000LL;
|
||||||
|
mod->mask2= 0LL;
|
||||||
|
m_spellmod = mod;
|
||||||
|
}
|
||||||
|
((Player*)m_target)->AddSpellMod(m_spellmod, apply);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case SPELLFAMILY_DRUID:
|
case SPELLFAMILY_DRUID:
|
||||||
{
|
{
|
||||||
// Lifebloom
|
// Lifebloom
|
||||||
|
|
|
||||||
|
|
@ -4937,6 +4937,34 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SPELLFAMILY_PRIEST:
|
||||||
|
{
|
||||||
|
switch(m_spellInfo->Id)
|
||||||
|
{
|
||||||
|
// Pain and Suffering
|
||||||
|
case 47948:
|
||||||
|
{
|
||||||
|
if (!unitTarget)
|
||||||
|
return;
|
||||||
|
// Refresh Shadow Word: Pain on target
|
||||||
|
Unit::AuraList const &mPeriodic = unitTarget->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
|
||||||
|
for(Unit::AuraList::const_iterator i = mPeriodic.begin(); i != mPeriodic.end(); ++i)
|
||||||
|
{
|
||||||
|
if( (*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_PRIEST &&
|
||||||
|
(*i)->GetSpellProto()->SpellFamilyFlags & 0x0000000000008000LL &&
|
||||||
|
(*i)->GetCasterGUID()==m_caster->GetGUID() )
|
||||||
|
{
|
||||||
|
(*i)->RefreshAura();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case SPELLFAMILY_HUNTER:
|
case SPELLFAMILY_HUNTER:
|
||||||
{
|
{
|
||||||
switch(m_spellInfo->Id)
|
switch(m_spellInfo->Id)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7175"
|
#define REVISION_NR "7176"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue