From: Jason Woofenden Date: Fri, 29 Nov 2013 04:34:34 +0000 (-0500) Subject: fix bug: conflicting board/neighbors force X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=commitdiff_plain;h=b20403c1264f721d3e85779df74200def0bea565;ds=sidebyside fix bug: conflicting board/neighbors force --- diff --git a/main.coffee b/main.coffee index 147b76a..459f152 100644 --- a/main.coffee +++ b/main.coffee @@ -548,7 +548,11 @@ blip_selection = -> force = effects.force.last() if force > 0 for tile in area.up - tile.new_hp = tile.hp + force + if tile.new_hp + # for overlap of board and [n]neigbors + tile.new_hp += force + else + tile.new_hp = tile.hp + force for s in spaces s.tile.new_hp ?= s.tile.hp - 1 if s.tile.new_hp < 0