Skip to content

Commit

Permalink
Retaliation should not proc while in CC.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Apr 13, 2024
1 parent ff60917 commit 2a4c9b1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/game/UnitAuraProcHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,15 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit* pVictim, uint32 amount, uint
if (!HasInArc(pVictim))
return SPELL_AURA_PROC_FAILED;

// World of Warcraft Client Patch 1.7.0 (2005-09-13)
// - Retaliation - Will now cause a maximum of 30 retaliatory strikes in
// 15 seconds.In addition, retaliatory strikes will not be possible
// while stunned.
#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_6_1
if (HasUnitState(UNIT_STAT_CAN_NOT_REACT))
return SPELL_AURA_PROC_FAILED;
#endif

triggered_spell_id = 22858;
break;
}
Expand Down Expand Up @@ -946,16 +955,6 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit* pVictim, uint32 amount, uint
return SPELL_AURA_PROC_FAILED;
triggered_spell_id = 26654;
}
// Retaliation
if (dummySpell->IsFitToFamilyMask<CF_WARRIOR_RETALIATION>())
{
// check attack comes not from behind
if (!HasInArc(pVictim))
return SPELL_AURA_PROC_FAILED;

triggered_spell_id = 22858;
break;
}
break;
}
case SPELLFAMILY_WARLOCK:
Expand Down

0 comments on commit 2a4c9b1

Please sign in to comment.