Core/Spells: Fixed Righteous Fury stacking exploit

This commit is contained in:
Lopin
2011-06-19 14:28:22 +02:00
parent 011e5a9003
commit b7d504a7e6

View File

@@ -2970,6 +2970,9 @@ void AuraEffect::HandleModThreat(AuraApplication const* aurApp, uint8 mode, bool
return;
Unit* target = aurApp->GetTarget();
if (!target || target->GetTypeId() != TYPEID_PLAYER || (apply && !target->isAlive()))
return;
for (int32 i = 0; i < MAX_SPELL_SCHOOL; ++i)
if (GetMiscValue() & (1 << i))
ApplyPercentModFloatVar(target->m_threatModifier[i], float(GetAmount()), apply);