From: Christian Heller Date: Wed, 17 Feb 2016 00:56:52 +0000 (+0100) Subject: Server: Fix bug in action_exists(). X-Git-Tag: tce~202 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/cards/%7B%7Bcard_id%7D%7D/condition?a=commitdiff_plain;h=d9387d37c9b9d1bee65694d0eb24bb028f26f32a;p=plomrogue Server: Fix bug in action_exists(). --- diff --git a/server/commands.py b/server/commands.py index 31bbea6..c17635e 100644 --- a/server/commands.py +++ b/server/commands.py @@ -429,7 +429,7 @@ def play_wait(): def action_exists(action): matching_actions = [x for x in world_db["ThingActions"] if world_db["ThingActions"][x]["TA_NAME"] == action] - if len(matching_actions) > 1: + if len(matching_actions) >= 1: return True print("No appropriate ThingAction defined.") return False