Remove any spawn script timers tied to the spawn when spawn is removeed

This commit is contained in:
Emagi 2024-03-23 08:06:13 -04:00
parent 0d474d8455
commit 2bd952fba7

View file

@ -6542,6 +6542,8 @@ void ZoneServer::RemoveSpawnSupportFunctions(Spawn* spawn, bool lock_spell_proce
if(spawn->IsEntity())
RemoveSpellTimersFromSpawn((Entity*)spawn, true, true, true, lock_spell_process);
StopSpawnScriptTimer(spawn, "");
RemoveDamagedSpawn(spawn);
spawn->SendSpawnChanges(false);
RemoveChangedSpawn(spawn);