mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Implement Paladin 31871 and ranks
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
5b50e2f9e8
commit
46a80e8ecc
1 changed files with 24 additions and 0 deletions
|
|
@ -4719,6 +4719,30 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
target = this;
|
target = this;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Divine purpose
|
||||||
|
case 31871:
|
||||||
|
case 31872:
|
||||||
|
{
|
||||||
|
// Roll chane
|
||||||
|
if (!roll_chance_i(triggeredByAura->GetModifier()->m_amount))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Remove any stun effect on target
|
||||||
|
AuraMap& Auras = pVictim->GetAuras();
|
||||||
|
for(AuraMap::iterator iter = Auras.begin(), next; iter != Auras.end();)
|
||||||
|
{
|
||||||
|
SpellEntry const *spell = sSpellStore.LookupEntry(iter->second->GetSpellProto()->Id);
|
||||||
|
if( spell->Mechanic == MECHANIC_STUN ||
|
||||||
|
spell->EffectMechanic[iter->second->GetEffIndex()] == MECHANIC_STUN)
|
||||||
|
{
|
||||||
|
pVictim->RemoveAurasDueToSpell(spell->Id);
|
||||||
|
iter = Auras.begin();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
++iter;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue