fix(Core/Unit): require contested guard attacker for friendly-target attack bypass (#26451)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-07-03 23:57:19 -03:00
committed by GitHub
parent 931201d31d
commit 9c80943df9
+1 -1
View File
@@ -10835,7 +10835,7 @@ bool Unit::_IsValidAttackTarget(Unit const* target, SpellInfo const* bySpell, Wo
if (Player const* player = target->GetCharmerOrOwnerPlayerOrPlayerItself())
isContestedPvp = player->HasPlayerFlag(PLAYER_FLAGS_CONTESTED_PVP);
if (!isContestedGuard && !isContestedPvp)
if (!isContestedGuard || !isContestedPvp)
return false;
}