Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2024-10-10 23:13:20 +08:00
15 changed files with 100 additions and 34 deletions

View File

@@ -1876,7 +1876,7 @@ bool Creature::IsInvisibleDueToDespawn() const
if (Unit::IsInvisibleDueToDespawn())
return true;
if (IsAlive() || m_corpseRemoveTime > GameTime::GetGameTime().count())
if (IsAlive() || isDying() || m_corpseRemoveTime > GameTime::GetGameTime().count())
return false;
return true;