aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-08-26 22:53:38 +0200
committerShauren <shauren.trinity@gmail.com>2023-08-26 23:36:26 +0200
commit9ca85627e22a25b635049b3959f1771481e1cdad (patch)
tree3f4032a43c50b3f71bad27514374b598987b3259 /src
parented98146d317f9b956e8ca23524631cdd2388492b (diff)
Scripts/Spells: Cancel existing Light's Wrath visual missiles when recasting the spell
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index 27354ef2f7a..d72bbff34b9 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -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);
}
}