diff --git a/eos/saveddata/drone.py b/eos/saveddata/drone.py index 8a064a719..e49aeb2ad 100755 --- a/eos/saveddata/drone.py +++ b/eos/saveddata/drone.py @@ -164,7 +164,7 @@ class Drone(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): def canBeApplied(self, projectedOnto): """Check if drone can engage specific fitting""" item = self.item - if (item.offensive and projectedOnto.ship.getModifiedItemAttr("disallowOffensiveModifiers") == 1) or \ + if (item.offensive and projectedOnto.ship.getModifiedItemAttr("disallowOffensiveModifiers") == 1 and "energyDestabilizationNew" not in item.effects) or \ (item.assistive and projectedOnto.ship.getModifiedItemAttr("disallowAssistance") == 1): return False else: diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index bde1a9aa6..9b5dad369 100755 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -464,7 +464,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): return currActive <= maxGroupActive # For projected, we're checking if ship is vulnerable to given item else: - if (item.offensive and projectedOnto.ship.getModifiedItemAttr("disallowOffensiveModifiers") == 1) or \ + if (item.offensive and projectedOnto.ship.getModifiedItemAttr("disallowOffensiveModifiers") == 1 and "energyDestabilizationNew" not in item.effects) or \ (item.assistive and projectedOnto.ship.getModifiedItemAttr("disallowAssistance") == 1): return False else: