feat: update candy logic
This commit is contained in:
+1
-1
@@ -1184,7 +1184,7 @@ func _find_valid_drop_position() -> Vector2i:
|
||||
var main_candy_survival = get_tree().root.get_node_or_null("Main")
|
||||
if main_candy_survival and main_candy_survival.get("candy_survival_manager"):
|
||||
gm = main_candy_survival.candy_survival_manager
|
||||
if gm and gm.is_active:
|
||||
if gm and gm.active:
|
||||
if pos.x == 0 or pos.x == gm.ARENA_COLUMNS - 1 or pos.y == 0 or pos.y == gm.ARENA_ROWS - 1:
|
||||
continue
|
||||
if gm._is_npc_zone(pos):
|
||||
|
||||
Reference in New Issue
Block a user