diff options
| author | Shocker <none@none> | 2010-08-27 06:48:26 +0300 |
|---|---|---|
| committer | Shocker <none@none> | 2010-08-27 06:48:26 +0300 |
| commit | 55b09e7a9c312e900d6995fac790173904d5cf60 (patch) | |
| tree | e42827c581057b59a200d48a02dc6a8373e42ba6 | |
| parent | 35066fdb6a1b85d6c4518e726c0e1b4416948274 (diff) | |
Fix arena visibility (no more seeing opponents before arena starts, also fixes visibility for partners' pets)
--HG--
branch : trunk
| -rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 92af6785da2..6afebfe2260 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -20301,6 +20301,11 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool if (m_mover == u || this == u) return true; + // Arena visibility before arena start + if (HasAura(32727)) // Arena Preparation + if (const Player* target = u->GetCharmerOrOwnerPlayerOrPlayerItself()) + return GetBGTeam() == target->GetBGTeam(); + // phased visibility (both must phased in same way) if (!InSamePhase(u)) return false; |
