Add "is_psionic" property
Update unit.py
@@ -138,6 +138,10 @@ class Unit(object):
def is_massive(self) -> bool:
return Attribute.Massive.value in self._type_data.attributes
+ @property
+ def is_psionic(self) -> bool:
+ return Attribute.Psionic.value in self._type_data.attributes
+
@property
def is_mineral_field(self) -> bool:
return self._type_data.has_minerals
