[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:
+4
-4
@@ -18218,15 +18218,15 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool
|
|||||||
if(u->GetVisibility() == VISIBILITY_RESPAWN)
|
if(u->GetVisibility() == VISIBILITY_RESPAWN)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// always seen by owner
|
|
||||||
if(GetGUID() == u->GetCharmerOrOwnerGUID())
|
|
||||||
return true;
|
|
||||||
|
|
||||||
// Grid dead/alive checks
|
// Grid dead/alive checks
|
||||||
// non visible at grid for any stealth state
|
// non visible at grid for any stealth state
|
||||||
if(!u->IsVisibleInGridForPlayer(this))
|
if(!u->IsVisibleInGridForPlayer(this))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// always seen by owner
|
||||||
|
if(GetGUID() == u->GetCharmerOrOwnerGUID())
|
||||||
|
return true;
|
||||||
|
|
||||||
// different visible distance checks
|
// different visible distance checks
|
||||||
if(isInFlight()) // what see player in flight
|
if(isInFlight()) // what see player in flight
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user