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

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Astellar 2009-05-21 02:38:17 +04:00 committed by VladimirMangos
parent fa03b3663a
commit 75438d2736
2 changed files with 5 additions and 5 deletions

View file

@ -8916,10 +8916,6 @@ bool Unit::isVisibleForOrDetect(Unit const* u, bool detect, bool inVisibleList,
if(m_Visibility==VISIBILITY_RESPAWN)
return false;
// always seen by owner
if(GetCharmerOrOwnerGUID()==u->GetGUID())
return true;
// Grid dead/alive checks
if( u->GetTypeId()==TYPEID_PLAYER)
{
@ -8938,6 +8934,10 @@ bool Unit::isVisibleForOrDetect(Unit const* u, bool detect, bool inVisibleList,
return false;
}
// always seen by owner
if(GetCharmerOrOwnerGUID()==u->GetGUID())
return true;
// different visible distance checks
if(u->isInFlight()) // what see player in flight
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7860"
#define REVISION_NR "7861"
#endif // __REVISION_NR_H__