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;
|
return;
|
||||||
|
|
||||||
Unit * target = aurApp->GetTarget();
|
Unit * target = aurApp->GetTarget();
|
||||||
|
if (!target || (apply && !target->isAlive()))
|
||||||
if (!target->isAlive())
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Unit * caster = GetCaster();
|
Unit * caster = GetCaster();
|
||||||
if (!caster || !caster->isAlive())
|
if (!caster)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||||
|
|||||||
Reference in New Issue
Block a user