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

View File

@@ -503,12 +503,15 @@ class spell_flamewreath_aura : public AuraScript
{ {
if (Unit* target = GetTarget()) if (Unit* target = GetTarget())
{ {
target->CastSpell(target, SPELL_FLAME_WREATH_RAN_THRU, true); if (target->IsPlayer())
{
target->CastSpell(target, SPELL_FLAME_WREATH_RAN_THRU, true);
target->m_Events.AddEventAtOffset([target] { target->m_Events.AddEventAtOffset([target] {
target->RemoveAurasDueToSpell(SPELL_FLAME_WREATH_RAN_THRU); target->RemoveAurasDueToSpell(SPELL_FLAME_WREATH_RAN_THRU);
target->CastSpell(target, SPELL_FLAME_WREATH_EXPLOSION, true); target->CastSpell(target, SPELL_FLAME_WREATH_EXPLOSION, true);
}, 1s); }, 1s);
}
} }
} }
} }