diff options
Diffstat (limited to 'internal/game/sys_triggers.go')
| -rw-r--r-- | internal/game/sys_triggers.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/game/sys_triggers.go b/internal/game/sys_triggers.go index 61eb325..7a6466a 100644 --- a/internal/game/sys_triggers.go +++ b/internal/game/sys_triggers.go @@ -418,7 +418,11 @@ func (g *Game) TransientMobTick() { } } if inAllowed { - inst.DespawnCounter = inst.DespawnTickCount() + // The owner is back inside the allowed rooms: reset the grace + // period. (The old code assigned DespawnTickCount() back to the + // same field, a no-op that made the countdown cumulative across + // brief absences.) + inst.ResetDespawnCounter(engine.ToTicks(inst.DespawnTicks)) continue } inst.DecrementDespawnCounter() |
