From 8fe9e3c3fef0049df82281a62afe35dda516dfe2 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 17:48:26 -0400 Subject: fix: close combat ghost, admin traversal, login throttle, journal double-pay, and quality/economy gaps --- internal/game/cmd_consume.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/game/cmd_consume.go') diff --git a/internal/game/cmd_consume.go b/internal/game/cmd_consume.go index 2e05620..f12332e 100644 --- a/internal/game/cmd_consume.go +++ b/internal/game/cmd_consume.go @@ -279,5 +279,10 @@ func (g *Game) applyPotion(sess *net.Session, p *player.Player, itemID string, d p.ConsumeCooldown = 3 + // Persist the consumption and its effects: without this a crash before + // the next save replays the potion (duplicating the item) while losing + // the HP/battery/buff change. + g.saveCharacter(p) + g.broadcastAction(sess, "%s drinks a %s.", p.Name, def.Name) } -- cgit v1.2.3