mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Core/Creatures: merged some minor respawn standards
This commit is contained in:
@@ -1998,7 +1998,7 @@ void Creature::ForcedDespawn(uint32 timeMSToDespawn, Seconds forceRespawnTimer)
|
||||
|
||||
void Creature::DespawnOrUnsummon(uint32 msTimeToDespawn /*= 0*/, Seconds forceRespawnTimer /*= 0*/)
|
||||
{
|
||||
if (TempSummon* summon = this->ToTempSummon())
|
||||
if (TempSummon* summon = ToTempSummon())
|
||||
summon->UnSummon(msTimeToDespawn);
|
||||
else
|
||||
ForcedDespawn(msTimeToDespawn, forceRespawnTimer);
|
||||
|
||||
@@ -3031,7 +3031,7 @@ bool Map::CheckRespawn(RespawnInfo* info)
|
||||
ObjectGuid thisGUID = ObjectGuid((info->type == SPAWN_TYPE_GAMEOBJECT) ? HighGuid::GameObject : HighGuid::Unit, info->entry, info->spawnId);
|
||||
if (time_t linkedTime = GetLinkedRespawnTime(thisGUID))
|
||||
{
|
||||
time_t now = time(NULL);
|
||||
time_t now = GameTime::GetGameTime();
|
||||
time_t respawnTime;
|
||||
if (linkedTime == std::numeric_limits<time_t>::max())
|
||||
respawnTime = linkedTime;
|
||||
|
||||
Reference in New Issue
Block a user