Skip to content

Commit 492776c

Browse files
committed
Fix Scram effect to turn off MWDs. Fixes #70
1 parent 51a8076 commit 492776c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

eos/effects/warpscrambleblockmwdwithnpceffect.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@
44
# Variations of module: Warp Scrambler I (19 of 19)
55
runTime = "early"
66
type = "projected", "active"
7+
8+
from eos.types import State
9+
710
def handler(fit, module, context):
8-
pass
11+
if "projected" not in context:
12+
return
13+
# this is such a dirty hack
14+
for mod in fit.modules:
15+
if not mod.isEmpty and mod.item.requiresSkill("High Speed Maneuvering") and mod.state > State.ONLINE:
16+
mod.state = State.ONLINE

0 commit comments

Comments
 (0)