aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_agility.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_agility.go')
-rw-r--r--internal/game/act_agility.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/act_agility.go b/internal/game/act_agility.go
index fd16102..9842365 100644
--- a/internal/game/act_agility.go
+++ b/internal/game/act_agility.go
@@ -159,6 +159,10 @@ func (g *Game) obstacleFail(sess *net.Session, p *player.Player, d *behavior.Obs
if p.HP < 1 {
p.HP = 1
}
+ // Match the combat/hazard damage paths: without StartRegen the first
+ // RegenTick sees a zero timer and heals on the very next tick instead of
+ // waiting the full regen interval.
+ p.StartRegen()
sess.WriteLine(g.colorize(sess, "damage_taken",
fmt.Sprintf("You take %s damage. HP: %d/%d", g.dmgDisplay(sess, damage), p.HP, p.MaxHP())))