From 9cfa0748aca6d75a8ecf1e38aca7b6b0bbf8432a Mon Sep 17 00:00:00 2001 From: blitzman Date: Fri, 9 Dec 2016 22:27:17 -0800 Subject: [PATCH] fix for #871 (cherry picked from commit 70af2b0) --- eos/effects/shipmodesmallmissiledamagepostdiv.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/eos/effects/shipmodesmallmissiledamagepostdiv.py b/eos/effects/shipmodesmallmissiledamagepostdiv.py index 7321f4848..406d7d92b 100644 --- a/eos/effects/shipmodesmallmissiledamagepostdiv.py +++ b/eos/effects/shipmodesmallmissiledamagepostdiv.py @@ -8,6 +8,9 @@ type = "passive" def handler(fit, module, context): types = ("thermal", "em", "explosive", "kinetic") for type in types: - fit.modules.filteredChargeBoost( - lambda mod: mod.charge.requiresSkill("Rockets") or mod.charge.requiresSkill("Light Missiles"), - "{}Damage".format(type), 1 / module.getModifiedItemAttr("modeDamageBonusPostDiv")) + fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Rockets") or + mod.charge.requiresSkill("Light Missiles"), + "{}Damage".format(type), + 1 / module.getModifiedItemAttr("modeDamageBonusPostDiv"), + stackingPenalties = True, + penaltyGroup="postDiv")