Forgot check if advanced_iads is active

This commit is contained in:
Raffson 2022-10-16 14:49:13 +02:00
parent ace3af8f50
commit 9ad92d26d4
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -179,7 +179,7 @@ class IadsNetwork:
def update_tgo(self, tgo: TheaterGroundObject, events: GameUpdateEvents) -> None:
"""Update the IADS Network for the given TGO"""
if IadsRole.for_category(tgo.category).is_comms_or_power:
if self.advanced_iads and IadsRole.for_category(tgo.category).is_comms_or_power:
return self._update_iads_comms_and_power(tgo, events)
# Remove existing nodes for the given tgo
for cn in self.nodes: