Skip to content

Commit

Permalink
WD: Fix wrong force warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Nov 26, 2024
1 parent 28c9baa commit c4e70db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/wave_defense/enemy_states.lua
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,11 @@ function Public._esp:check_unit_group()
return false
end

if self.entity.force.index ~= self.group.force.index then
log('EnemyStates::CheckUnitGroup - Unit group force is not the same as the entity force')
return false
end

self.group.add_member(self.entity)
return true
end
Expand Down

0 comments on commit c4e70db

Please sign in to comment.