Fix ES effect affecting local modules

This commit is contained in:
DarkPhoenix
2015-02-13 22:09:38 +03:00
parent f1cdabf37c
commit 931e48d9a0

View File

@@ -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"))