From 7c7c3a437001a71e7fb9d22c4c11795d524f2009 Mon Sep 17 00:00:00 2001 From: Astellar Date: Thu, 21 May 2009 02:38:17 +0400 Subject: [PATCH] [7861] Update visibility check to make possible have invisible for owner pets/totems (need for some spells) Signed-off-by: VladimirMangos --- src/game/Unit.cpp | 8 ++++---- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index bc4af11c5..e64f0eb1d 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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 { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2340b9655..293164a61 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7860" + #define REVISION_NR "7861" #endif // __REVISION_NR_H__ -- 2.11.4.GIT