aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLopin <davca.hr@seznam.cz>2011-06-19 14:28:22 +0200
committerLopin <davca.hr@seznam.cz>2011-06-19 14:28:22 +0200
commitb7d504a7e60ea98d0f826185fe87ce3e625ce0d4 (patch)
treedd6a582d56c29a30828f05dd107ab22cd29f5be6 /src
parent011e5a9003e8c0debd8bc702ba49b131a6017c12 (diff)
Core/Spells: Fixed Righteous Fury stacking exploit
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuraEffects.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index e63d0dfda03..a6318c7fea2 100755
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -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);