Optional sanity check for actions.
[naja.git] / naja / gameboard.py
index 52d1323bd176a5cd3ca7205086b7fe44455f450f..689c3fd15fcf324d9110763331a6a0eeb93023d2 100644 (file)
@@ -305,6 +305,9 @@ class LocationCard(object):
         self.actions = location_actions
         self.max_number = max_number
         self.replacement_time = replacement_time
+        if options.debug:
+            for action in self.actions:
+                action.sanity_check(self)
 
     @classmethod
     def import_location(cls, state):