aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-21 10:50:28 -0500
committermegamage <none@none>2009-05-21 10:50:28 -0500
commit1a4378572bb4887cc2aab1556502a838522397ca (patch)
tree9c3a0e17d5a85e2d09bbc1251ef485b3524c85ae
parent67c84b1f3d74985fd2521feb9e536e56b9c9f2e9 (diff)
[7861] Update visibility check to make possible have invisible for owner pets/totems (need for some spells) Author: Astellar
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 586396769d6..2bdae866aab 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -18218,15 +18218,15 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool
if(u->GetVisibility() == VISIBILITY_RESPAWN)
return false;
- // always seen by owner
- if(GetGUID() == u->GetCharmerOrOwnerGUID())
- return true;
-
// Grid dead/alive checks
// non visible at grid for any stealth state
if(!u->IsVisibleInGridForPlayer(this))
return false;
+ // always seen by owner
+ if(GetGUID() == u->GetCharmerOrOwnerGUID())
+ return true;
+
// different visible distance checks
if(isInFlight()) // what see player in flight
{