We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d16bd62 commit ff0a553Copy full SHA for ff0a553
project/src/Ships/Enemies/Pirate/PirateShip.gd
@@ -120,6 +120,10 @@ func _die() -> void:
120
emit_signal("died")
121
var new_leader: KinematicBody2D
122
for squaddie in squaddies:
123
+ # FIXME: I had an error because a Projectile was in the squaddies array
124
+ # We should ensure this cannot happen, and squaddies are all from the faction
125
+ if not squaddie.is_in_group("Enemies"):
126
+ continue
127
if squaddie._health > 0:
128
new_leader = squaddie
129
break
0 commit comments