Fix for #1321 - make sure we have attribute on ship

This commit is contained in:
blitzmann
2017-10-28 18:49:46 -04:00
parent 5dc092ace5
commit 3b61a07c55

View File

@@ -7,6 +7,9 @@ type = "passive"
def handler(fit, src, context):
if src.getModifiedItemAttr("shipBonusForceAuxiliaryC1") is None:
return # See GH Issue 1321
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capacitor Emission Systems") or
mod.item.requiresSkill("Capital Capacitor Emission Systems"),
"powerTransferAmount", src.getModifiedItemAttr("shipBonusForceAuxiliaryC1"),