fix(Scripts/Spells): Fixed never-ending Victorious state proc off from Victory Rush. (#7856)

Fixes #7628

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
UltraNix
2021-09-19 16:07:47 +02:00
committed by GitHub
parent 87f7ec6c0b
commit 86c5511e7b
+6 -2
View File
@@ -93,6 +93,11 @@ public:
} }
}; };
enum VictoryRushEnum
{
SPELL_VICTORIOUS = 32216
};
class spell_warr_victory_rush : public SpellScriptLoader class spell_warr_victory_rush : public SpellScriptLoader
{ {
public: public:
@@ -106,12 +111,11 @@ public:
{ {
if (Unit* player = GetCaster()) if (Unit* player = GetCaster())
{ {
player->ModifyAuraState(AURA_STATE_WARRIOR_VICTORY_RUSH, false);
if (Unit* victim = GetHitUnit()) if (Unit* victim = GetHitUnit())
{ {
if (victim->isDead()) if (victim->isDead())
{ {
player->ModifyAuraState(AURA_STATE_WARRIOR_VICTORY_RUSH, true); player->CastSpell(player, SPELL_VICTORIOUS, true);
} }
} }
} }