Procházet zdrojové kódy

when ant die: allow not in for states remove

Bastien Sevajol před 9 roky
rodič
revize
c3a23b90f9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      intelligine/synergy/Simulation.py

+ 1 - 1
intelligine/synergy/Simulation.py Zobrazit soubor

@@ -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