diff options
Diffstat (limited to 'internal/game/combat_mob.go')
| -rw-r--r-- | internal/game/combat_mob.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/game/combat_mob.go b/internal/game/combat_mob.go index b717d8e..c5a6d9f 100644 --- a/internal/game/combat_mob.go +++ b/internal/game/combat_mob.go @@ -379,6 +379,11 @@ func (g *Game) killPlayer(sess *net.Session, p *player.Player, mob *world.MobIns if mob.HP < 0 { mob.HP = 0 } + // Every other damage site arms the regen timer; without this a + // surviving mob heals 1 HP per tick instead of 1 per 100. + if mob.HP > 0 && mob.HP < mob.MaxHP { + mob.StartRegen() + } sess.WriteLine(fmt.Sprintf("Dead Man's Switch activates! %s takes %s damage!", mobDisplayName(mob, true), g.dmgDisplay(sess, retDmg))) } |
