From: Christian Heller Date: Sun, 13 Mar 2016 20:29:53 +0000 (+0100) Subject: TCE: Fix AI bug. X-Git-Tag: tce~4 X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bdb.prefix%7D%7D/tasks?a=commitdiff_plain;h=8f40b524368a30a59dc31bd791870a8d70a697bc;p=plomrogue TCE: Fix AI bug. --- diff --git a/plugins/server/TheCrawlingEater.py b/plugins/server/TheCrawlingEater.py index e2de2e6..b7bbee5 100644 --- a/plugins/server/TheCrawlingEater.py +++ b/plugins/server/TheCrawlingEater.py @@ -820,7 +820,7 @@ def ai(t): world_db["terrain_fullness"](t["pos"]) <= 3: t["T_COMMAND"] = thing_action_id("drop") return - elif world_db["get_dir_to_target"](t, "crack"): + elif world_db["get_dir_to_target"](t, "crack")[0]: return if need[0] in {"fluid_certain", "fluid_potential"}: if standing_on_fluid(t):