fix(Core/Spells): Fix Retaliation self-proc on activation (#25062)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
parent
1963ed1b4c
commit
56985dac51
1 changed files with 4 additions and 0 deletions
|
|
@ -884,6 +884,10 @@ class spell_warr_retaliation : public AuraScript
|
|||
|
||||
bool CheckProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
// Prevent counterattacking yourself on activation
|
||||
if (eventInfo.GetActor() == eventInfo.GetActionTarget())
|
||||
return false;
|
||||
|
||||
// check attack comes not from behind and warrior is not stunned
|
||||
return eventInfo.GetActionTarget()->isInFront(eventInfo.GetActor(), float(M_PI)) && !GetTarget()->HasUnitState(UNIT_STATE_STUNNED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue