home · contact · privacy
Server: Fix bug in action_exists().
[plomrogue] / server / commands.py
index 31bbea633023bca3d5edff3e5e29b7fedc9d12f4..c17635e3f369d7119f10c0c15cd89b308b5d0ef2 100644 (file)
@@ -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