Parcourir la source

when ant die: allow not in for states remove

Bastien Sevajol il y a 9 ans
Parent
révision
c3a23b90f9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      intelligine/synergy/Simulation.py

+ 1 - 1
intelligine/synergy/Simulation.py Voir le fichier

@@ -16,7 +16,7 @@ def bug_die(bug, context):
16 16
                                            COL_WALKER, \
17 17
                                            COL_ALIVE],
18 18
                                           allow_not_in=True)
19
-    context.metas.states.remove_list(bug.get_id(), [ALIVE, ATTACKABLE])
19
+    context.metas.states.remove_list(bug.get_id(), [ALIVE, ATTACKABLE], allow_not_in=True)
20 20
 
21 21
 class Simulation(BaseSimulation):
22 22