From 3b61a07c5579ece2d6bca4cccec5ed8d450485f6 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 28 Oct 2017 18:49:46 -0400 Subject: [PATCH] Fix for #1321 - make sure we have attribute on ship --- .../shipbonusforceauxiliaryc1remoteboostandcapamount.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eos/effects/shipbonusforceauxiliaryc1remoteboostandcapamount.py b/eos/effects/shipbonusforceauxiliaryc1remoteboostandcapamount.py index 144ef28dc..f4d1939eb 100644 --- a/eos/effects/shipbonusforceauxiliaryc1remoteboostandcapamount.py +++ b/eos/effects/shipbonusforceauxiliaryc1remoteboostandcapamount.py @@ -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"),