No need to hardcore spellid for arena visibility check
--HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user