summaryrefslogtreecommitdiff
path: root/Sprite.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Sprite.gd')
-rw-r--r--Sprite.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/Sprite.gd b/Sprite.gd
index e227c11..263addc 100644
--- a/Sprite.gd
+++ b/Sprite.gd
@@ -10,6 +10,7 @@ export var team = 0
export var has_moved = false
export var in_check = false
+export var killed = false # queue_free() isn't fast enough; get_nodes.by_group("piece") will still find this so mark explictly
func get_move_pattern():
return self.move_patterns.get(piece)
@@ -82,4 +83,5 @@ func get_piece_color_by_region():
return map
func kill():
+ killed = true
queue_free()