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
This commit is contained in:
Machiavelli
2010-12-19 00:38:35 +01:00
parent 8d76329eff
commit 837e50ea23
@@ -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)