fix(Scripts/Karazhan): Fix Flame Wreath affecting pets (#17581)

This commit is contained in:
Andrew
2023-10-25 19:01:15 -03:00
committed by GitHub
parent 632b55faa5
commit 3dcbe649dd
@@ -502,6 +502,8 @@ class spell_flamewreath_aura : public AuraScript
if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_DEFAULT && GetDuration()) if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_DEFAULT && GetDuration())
{ {
if (Unit* target = GetTarget()) if (Unit* target = GetTarget())
{
if (target->IsPlayer())
{ {
target->CastSpell(target, SPELL_FLAME_WREATH_RAN_THRU, true); target->CastSpell(target, SPELL_FLAME_WREATH_RAN_THRU, true);
@@ -512,6 +514,7 @@ class spell_flamewreath_aura : public AuraScript
} }
} }
} }
}
void Register() override void Register() override
{ {