mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Remove dead code
Remove a double check on result of same function, with the 2nd being always true.
This commit is contained in:
@@ -23051,11 +23051,7 @@ bool Player::IsVisibleGloballyFor(Player const* u) const
|
||||
return GetSession()->GetSecurity() <= u->GetSession()->GetSecurity();
|
||||
|
||||
// non faction visibility non-breakable for non-GMs
|
||||
if (!IsVisible())
|
||||
return false;
|
||||
|
||||
// non-gm stealth/invisibility not hide from global player lists
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
||||
Reference in New Issue
Block a user