From 86c5511e7b014be25fdf75d22a0811dd9ac427d9 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 19 Sep 2021 16:07:47 +0200 Subject: [PATCH] fix(Scripts/Spells): Fixed never-ending Victorious state proc off from Victory Rush. (#7856) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #7628 Co-authored-by: Stefano Borzì --- src/server/scripts/Spells/spell_warrior.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp index 42671ecf6..db7274362 100644 --- a/src/server/scripts/Spells/spell_warrior.cpp +++ b/src/server/scripts/Spells/spell_warrior.cpp @@ -93,6 +93,11 @@ public: } }; +enum VictoryRushEnum +{ + SPELL_VICTORIOUS = 32216 +}; + class spell_warr_victory_rush : public SpellScriptLoader { public: @@ -106,12 +111,11 @@ public: { if (Unit* player = GetCaster()) { - player->ModifyAuraState(AURA_STATE_WARRIOR_VICTORY_RUSH, false); if (Unit* victim = GetHitUnit()) { if (victim->isDead()) { - player->ModifyAuraState(AURA_STATE_WARRIOR_VICTORY_RUSH, true); + player->CastSpell(player, SPELL_VICTORIOUS, true); } } }