From: Jason Woofenden Date: Sat, 2 Nov 2013 19:26:54 +0000 (-0400) Subject: can't click dead tiles X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=commitdiff_plain;h=5675554a92605fe4e63f46733ce04423080d7403 can't click dead tiles --- diff --git a/main.coffee b/main.coffee index e67a3e3..860469d 100644 --- a/main.coffee +++ b/main.coffee @@ -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