X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=blobdiff_plain;f=main.coffee;h=860469d96d57adc11425ea6c7081e218a5012f98;hp=e67a3e344626aeab8478042a51a4d91ca5e131bd;hb=5675554a92605fe4e63f46733ce04423080d7403;hpb=fff36074eecf575408c820f9cbf8a9f2dc6942c5 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