mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user