Fix for resassigning targets after they are moved to a different group
This commit is contained in:
Binary file not shown.
@@ -304,6 +304,12 @@ class BotAssignmentManager:
|
||||
|
||||
# Reassign targets that timed out
|
||||
for group_id, enemy_id in to_reassign:
|
||||
# Verify enemy is still in this group before reassigning
|
||||
enemy_ids = STATE.groups[group_id].get("enemy", [])
|
||||
if enemy_id not in enemy_ids:
|
||||
print(f"Enemy {enemy_id} no longer in group {group_id} - not reassigning")
|
||||
continue
|
||||
|
||||
friendly_ids = STATE.groups[group_id].get("friendly", [])
|
||||
friendly_id = self.get_next_friendly_in_group(group_id, friendly_ids)
|
||||
if friendly_id:
|
||||
|
||||
Reference in New Issue
Block a user