This commit is contained in:
blitzmann
2014-04-14 22:14:06 -04:00
parent 507c423e09
commit 6dc4161a36
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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: