Bastien Sevajol před 6 roky
rodič
revize
380b3f23f3
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      opencombat/simulation/behaviour.py

+ 4 - 1
opencombat/simulation/behaviour.py Zobrazit soubor

@@ -124,7 +124,10 @@ class EngageOpponent(AliveSubjectBehaviour):
124 124
         target_position = data['target_position']
125 125
 
126 126
         events = list()
127
-        events.append(FireEvent(shooter_subject_id=self.subject.id, target_position=target_position))
127
+        events.append(FireEvent(
128
+            shooter_subject_id=self.subject.id,
129
+            target_position=target_position,
130
+        ))
128 131
 
129 132
         # Must be check if target is not already dead (killed same cycle)
130 133
         if kill and COLLECTION_ALIVE in target_subject.collections: