From bb216aa6edb1d044139620fb64f243737153128b Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Sun, 11 Dec 2016 12:56:17 -0800 Subject: [PATCH] wrong index in tuple. Array looks normally so: (RunTime, Value, etc., etc.) ("normal", -10, ..., ...) I guess "RunTime" got added and this is an artifact as it is rarely called. Fixes Orca-Mining-Boost onto itself and other ships. (cherry picked from commit 0ba88d0) --- eos/saveddata/fit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eos/saveddata/fit.py b/eos/saveddata/fit.py index 5ca38dba0..7138c8ca3 100644 --- a/eos/saveddata/fit.py +++ b/eos/saveddata/fit.py @@ -453,7 +453,7 @@ class Fit(object): # (abs is old method, ccp now provides the aggregate function in their data) print "Add command bonus: ", warfareBuffID, " - value: ", value - if warfareBuffID not in self.commandBonuses or abs(self.commandBonuses[warfareBuffID][0]) < abs(value): + if warfareBuffID not in self.commandBonuses or abs(self.commandBonuses[warfareBuffID][1]) < abs(value): self.commandBonuses[warfareBuffID] = (runTime, value, module, effect) def __runCommandBoosts(self, runTime="normal"):