No need to hardcore spellid for arena visibility check

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-08-27 10:24:20 +03:00
parent c1ac063ba1
commit 9cf892b8f2
+1 -1
View File
@@ -20302,7 +20302,7 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool
return true; return true;
// Arena visibility before arena start // Arena visibility before arena start
if (HasAura(32727)) // Arena Preparation if (InArena() && GetBattleground() && GetBattleground()->GetStatus() == STATUS_WAIT_JOIN)
if (const Player* target = u->GetCharmerOrOwnerPlayerOrPlayerItself()) if (const Player* target = u->GetCharmerOrOwnerPlayerOrPlayerItself())
return GetBGTeam() == target->GetBGTeam(); return GetBGTeam() == target->GetBGTeam();