From 492776c5a8dd3f1c293d70e6ce51cce1f9cc1a99 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 6 Sep 2015 11:06:52 -0400 Subject: [PATCH] Fix Scram effect to turn off MWDs. Fixes #70 --- eos/effects/warpscrambleblockmwdwithnpceffect.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/eos/effects/warpscrambleblockmwdwithnpceffect.py b/eos/effects/warpscrambleblockmwdwithnpceffect.py index 292fcba3d..8c7f55f80 100644 --- a/eos/effects/warpscrambleblockmwdwithnpceffect.py +++ b/eos/effects/warpscrambleblockmwdwithnpceffect.py @@ -4,5 +4,13 @@ # Variations of module: Warp Scrambler I (19 of 19) runTime = "early" type = "projected", "active" + +from eos.types import State + def handler(fit, module, context): - pass \ No newline at end of file + if "projected" not in context: + return + # this is such a dirty hack + for mod in fit.modules: + if not mod.isEmpty and mod.item.requiresSkill("High Speed Maneuvering") and mod.state > State.ONLINE: + mod.state = State.ONLINE