diff --git a/sc2/unit.py b/sc2/unit.py index 07b63e90..dab96642 100644 --- a/sc2/unit.py +++ b/sc2/unit.py @@ -927,7 +927,11 @@ def detect_range(self) -> float: def is_detector(self) -> bool: """Checks if the unit is a detector. Has to be completed in order to detect and Photoncannons also need to be powered.""" - return self.is_ready and (self.type_id in IS_DETECTOR or self.type_id == UNIT_PHOTONCANNON and self.is_powered) + return ( + self.is_ready + and (self.type_id in IS_DETECTOR or self.type_id == UNIT_PHOTONCANNON and self.is_powered) + or self.type_id == UnitTypeId.OBSERVER + ) @property def radar_range(self) -> float: