JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
can't click dead tiles
[hexbog.git] / main.coffee
index e67a3e3..860469d 100644 (file)
@@ -456,6 +456,7 @@ new_tile = (num, x, y) ->
        html_tile.click ->
                me = $(this)
                num = me.data 'tile_number'
+               return if tiles[num].hp < 1
                if num in selected
                        nth_of_word = selected.indexOf(num)
                        first = nth_of_word is 0