From c4e70db9330b1b168d0e4e3054b3153965d23a30 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Tue, 26 Nov 2024 08:26:16 +0100 Subject: [PATCH] WD: Fix wrong force warnings --- modules/wave_defense/enemy_states.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/wave_defense/enemy_states.lua b/modules/wave_defense/enemy_states.lua index 6a18b68a..23e72ff1 100644 --- a/modules/wave_defense/enemy_states.lua +++ b/modules/wave_defense/enemy_states.lua @@ -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