Procházet zdrojové kódy

when ant die: allow not in for states remove

Bastien Sevajol před 11 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
                                            COL_WALKER, \
16
                                            COL_WALKER, \
17
                                            COL_ALIVE],
17
                                            COL_ALIVE],
18
                                           allow_not_in=True)
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
 class Simulation(BaseSimulation):
21
 class Simulation(BaseSimulation):
22
 
22