diff --git a/game/game.go b/game/game.go index 48013fd..ddc6113 100644 --- a/game/game.go +++ b/game/game.go @@ -191,6 +191,7 @@ func (g *Match) Shoot(id player.ID, self bool) error { if live { target.hp -= g.damage if target.hp <= 0 { + target.hp = 0 // in case it goes negative // If the target is the challenger, the match is over as well. if target == &g.players[1] { g.round = 3