Core/Arena: Don't ignore GM visibility in arena pre-start visibility check, fixes issue 3862

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-09-08 07:57:14 +03:00
parent 01c2a6d87c
commit 3bb2dc3588
+1 -1
View File
@@ -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))