Scripts/Spells: Cancel existing Light's Wrath visual missiles when recasting the spell

This commit is contained in:
Shauren
2023-08-26 22:53:38 +02:00
parent ed98146d31
commit 9ca85627e2

View File

@@ -1295,6 +1295,7 @@ class spell_pri_lights_wrath : public SpellScript
{
if (Unit* target = ObjectAccessor::GetUnit(*GetCaster(), atonementTarget))
{
target->CancelSpellMissiles(SPELL_PRIEST_LIGHTS_WRATH_VISUAL, false, false);
target->CastSpell(GetCaster(), SPELL_PRIEST_LIGHTS_WRATH_VISUAL, TRIGGERED_IGNORE_CAST_IN_PROGRESS);
}
}