Core/Instance: stop updating the instance resettimes based on creature respawns
This commit is contained in:
1 parent
0d6c2978ae
commit
c17fa0bcc5
8 files changed
+53
-46
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user