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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user