From 837e50ea23de75af0d7acf05c737368db19f9780 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sun, 19 Dec 2010 00:38:35 +0100 Subject: [PATCH] =?UTF-8?q?Core/Spells:=20Allow=20aura=C2=B4s=20with=20SPE?= =?UTF-8?q?LL=5FAURA=5FMOD=5FTHREAT=20(10)=20to=20properly=20reduce=20thre?= =?UTF-8?q?at=20modifiers=20on=20death.=20Inspired=20by=20effort=20of=20ja?= =?UTF-8?q?mes.gml=20Fixes=20issue=20#3444?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : trunk --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index a7d279a77e..823d8b7f03 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)