mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-10 19:03:11 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user