From decf7ff0286e8b8ac956427c3dc8ead5d7b6b807 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Tue, 1 Sep 2015 23:23:52 -0400 Subject: [PATCH] Fix #351 --- eos/saveddata/ship.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eos/saveddata/ship.py b/eos/saveddata/ship.py index 0be3cecf4..094c02c3f 100644 --- a/eos/saveddata/ship.py +++ b/eos/saveddata/ship.py @@ -70,6 +70,14 @@ class Ship(ItemAttrShortcut, HandledItem): if forceProjected: return for effect in self.item.effects.itervalues(): if effect.runTime == runTime and effect.isType("passive"): + # Ships have effects that utilize the level of a skill as an + # additional operator to the modifier. These are defined in + # the effect itself, and these skillbooks are registered when + # they are provided. However, we must re-register the ship + # before each effect, otherwise effects that do not have + # skillbook modifiers will use the stale modifier value + # GH issue #351 + fit.register(self) effect.handler(fit, self, ("ship",)) def validateModeItem(self, item):