Fix for #1321 - make sure we have attribute on ship
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user