mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Scripts/Karazhan): Fix Flame Wreath affecting pets (#17581)
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user