mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-19 22:39:39 -04:00
Core/Arena: Don't ignore GM visibility in arena pre-start visibility check, fixes issue 3862
--HG-- branch : trunk
This commit is contained in:
@@ -20354,7 +20354,7 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool
|
||||
// Arena visibility before arena start
|
||||
if (InArena() && GetBattleground()->GetStatus() == STATUS_WAIT_JOIN)
|
||||
if (const Player* target = u->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
return GetBGTeam() == target->GetBGTeam();
|
||||
return GetBGTeam() == target->GetBGTeam() && target->isGMVisible();
|
||||
|
||||
// phased visibility (both must phased in same way)
|
||||
if (!InSamePhase(u))
|
||||
|
||||
Reference in New Issue
Block a user