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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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