mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-19 22:39:39 -04:00
Some cleanup of CanSeeOrDetect code.
This commit is contained in:
@@ -854,16 +854,16 @@ bool GameObject::isAlwaysVisibleFor(WorldObject const* seer) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GameObject::isVisibleForInState(WorldObject const* seer) const
|
||||
bool GameObject::IsInvisibleDueToDespawn() const
|
||||
{
|
||||
if (!WorldObject::isVisibleForInState(seer))
|
||||
return false;
|
||||
if (WorldObject::IsInvisibleDueToDespawn())
|
||||
return true;
|
||||
|
||||
// Despawned
|
||||
if (!isSpawned())
|
||||
return false;
|
||||
return true;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void GameObject::Respawn()
|
||||
|
||||
Reference in New Issue
Block a user