diff options
author | Machiavelli <none@none> | 2010-12-19 00:38:35 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-12-19 00:38:35 +0100 |
commit | 837e50ea23de75af0d7acf05c737368db19f9780 (patch) | |
tree | 996044175e4830fcb45a57260e297582327ee759 /src | |
parent | 8d76329eff63477cbbb00ee5e48fe19ea3287184 (diff) |
Core/Spells: Allow aura´s with SPELL_AURA_MOD_THREAT (10) to properly reduce threat modifiers on death.
Inspired by effort of james.gml
Fixes issue #3444
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index a7d279a77ee..823d8b7f031 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -3963,12 +3963,11 @@ void AuraEffect::HandleModThreat(AuraApplication const * aurApp, uint8 mode, boo return; Unit * target = aurApp->GetTarget(); - - if (!target->isAlive()) + if (!target || (apply && !target->isAlive())) return; Unit * caster = GetCaster(); - if (!caster || !caster->isAlive()) + if (!caster) return; if (target->GetTypeId() == TYPEID_PLAYER) |