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
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user