mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Core/Unit): require contested guard attacker for friendly-target attack bypass (#26451)
Co-authored-by: Claude Fable 5 <[email protected]>
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