fix(Scripts/Karazhan): Fix Flame Wreath affecting pets (#17581)
This commit is contained in:
parent
632b55faa5
commit
3dcbe649dd
1 changed files with 8 additions and 5 deletions
|
|
@ -503,12 +503,15 @@ class spell_flamewreath_aura : public AuraScript
|
|||
{
|
||||
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->RemoveAurasDueToSpell(SPELL_FLAME_WREATH_RAN_THRU);
|
||||
target->CastSpell(target, SPELL_FLAME_WREATH_EXPLOSION, true);
|
||||
}, 1s);
|
||||
target->m_Events.AddEventAtOffset([target] {
|
||||
target->RemoveAurasDueToSpell(SPELL_FLAME_WREATH_RAN_THRU);
|
||||
target->CastSpell(target, SPELL_FLAME_WREATH_EXPLOSION, true);
|
||||
}, 1s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue