Core/Instance: stop updating the instance resettimes based on creature respawns

This commit is contained in:
ariel- authored and Aokromes committed 2017-04-14 13:50:13 +02:00
1 parent 0d6c2978ae
commit c17fa0bcc5
8 files changed
+53 -46

No files matched your search

+1 -1
View File
@@ -14250,7 +14250,7 @@ void Unit::Kill(Unit* victim, bool durabilityLoss)
{
// the reset time is set but not added to the scheduler
// until the players leave the instance
time_t resettime = creature->GetRespawnTimeEx() + 2 * HOUR;
time_t resettime = GameTime::GetGameTime() + 2 * HOUR;
if (InstanceSave* save = sInstanceSaveMgr->GetInstanceSave(creature->GetInstanceId()))
if (save->GetResetTime() < resettime)
save->SetResetTime(resettime);