[7861] Update visibility check to make possible have invisible for owner pets/totems (need for some spells) Author: Astellar

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-21 10:50:28 -05:00
parent 67c84b1f3d
commit 1a4378572b
+4 -4
View File
@@ -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
{