fix(Core/Spells): Fix Retaliation self-proc on activation (#25062)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-03-11 19:34:01 -05:00
committed by GitHub
parent 1963ed1b4c
commit 56985dac51

View File

@@ -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);
}