diff --git a/service/port/efs.py b/service/port/efs.py index fc00d5dfb..71ea9660f 100755 --- a/service/port/efs.py +++ b/service/port/efs.py @@ -523,18 +523,18 @@ class EfsPort: tf.mode = fit.mode preTraitMultipliers = getCurrentMultipliers(tf) for effect in fit.ship.item.effects.values(): - if effect._Effect__effectModule is not None: + if effect.isImplemented: effect.handler(tf, tf.ship, []) # Factor in mode effects for T3 Destroyers if fit.mode is not None: for effect in fit.mode.item.effects.values(): - if effect._Effect__effectModule is not None: + if effect.isImplemented: effect.handler(tf, fit.mode, []) if fit.ship.item.groupID == getGroup("Strategic Cruiser").ID: subSystems = list(filter(lambda mod: mod.slot == FittingSlot.SUBSYSTEM and mod.item, fit.modules)) for sub in subSystems: for effect in sub.item.effects.values(): - if effect._Effect__effectModule is not None: + if effect.isImplemented: effect.handler(tf, sub, []) postTraitMultipliers = getCurrentMultipliers(tf) getMaxRatio = lambda dictA, dictB, key: max(map(lambda a, b: b / a, dictA[key], dictB[key]))