diff options
author | megamage <none@none> | 2008-11-25 21:32:20 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-25 21:32:20 -0600 |
commit | 9e3c9124f2b63e048e7a62a44c1ea36249e9a85a (patch) | |
tree | 1bd95bf3b8d8123e677cdb737daeceb84d93724f /src | |
parent | 9bbf3e9493bea8e7195ebef3a18a2e6a64be2914 (diff) |
*Fix the bug that low level gm cannot see high level gm even when they are visible.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 307dc6c7407..aff35ea3da1 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17411,17 +17411,18 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) cons return false; } - // GMs see any players, not higher GMs and all units - if(isGameMaster()) - { - if(u->GetTypeId() == TYPEID_PLAYER) - return ((Player *)u)->GetSession()->GetSecurity() <= GetSession()->GetSecurity(); - else - return true; - } - if(u->GetVisibility() == VISIBILITY_OFF) + { + // GMs see any players, not higher GMs and all units + if(isGameMaster()) + { + if(u->GetTypeId() == TYPEID_PLAYER) + return ((Player *)u)->GetSession()->GetSecurity() <= GetSession()->GetSecurity(); + else + return true; + } return false; + } // player see other player with stealth/invisibility only if he in same group or raid or same team (raid/team case dependent from conf setting) if((m_invisibilityMask || u->m_invisibilityMask) && !canDetectInvisibilityOf(u)) |