Bastien Sevajol hace 7 años
padre
commit
380b3f23f3
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      opencombat/simulation/behaviour.py

+ 4 - 1
opencombat/simulation/behaviour.py Ver fichero

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