From 931e48d9a0f9e908a01d95cad1d374d02bdbfb39 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 13 Feb 2015 22:09:38 +0300 Subject: [PATCH] Fix ES effect affecting local modules --- eos/effects/commandbonustdmultiplywithcommandbonushidden.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eos/effects/commandbonustdmultiplywithcommandbonushidden.py b/eos/effects/commandbonustdmultiplywithcommandbonushidden.py index 6b0ea92f7..05825349c 100644 --- a/eos/effects/commandbonustdmultiplywithcommandbonushidden.py +++ b/eos/effects/commandbonustdmultiplywithcommandbonushidden.py @@ -6,6 +6,7 @@ gangBonus = "commandBonusTD" gangBoost = "ewarStrTD" type = "active", "gang" def handler(fit, module, context): + if "gang" not in context: return for bonus in ("maxRangeBonus", "falloffBonus", "trackingSpeedBonus"): fit.modules.filteredItemBoost(lambda mod: lambda mod: mod.item.requiresSkill("Weapon Disruption"), bonus, module.getModifiedItemAttr("commandBonusTD"))