From 75e1e48ba819c81822a97f9c883a13648d810ea3 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sun, 2 Dec 2018 19:36:22 +0300 Subject: [PATCH 1/2] Allow lock amount skills to be applied to structures --- ...targetingmaxtargetbonusmodaddmaxlockedtargetslocationchar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eos/effects/targetingmaxtargetbonusmodaddmaxlockedtargetslocationchar.py b/eos/effects/targetingmaxtargetbonusmodaddmaxlockedtargetslocationchar.py index fcf70276e..d7a2004e4 100644 --- a/eos/effects/targetingmaxtargetbonusmodaddmaxlockedtargetslocationchar.py +++ b/eos/effects/targetingmaxtargetbonusmodaddmaxlockedtargetslocationchar.py @@ -2,7 +2,7 @@ # # Used by: # Skills named like: Target Management (2 of 2) -type = "passive" +type = "passive", "structure" def handler(fit, skill, context): From 0297ec47f6d067f371d01641ee334f22f3fd2f76 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 2 Dec 2018 16:08:53 -0500 Subject: [PATCH 2/2] Fix for #1814 --- gui/fitCommands/calc/fitReplaceModule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/fitCommands/calc/fitReplaceModule.py b/gui/fitCommands/calc/fitReplaceModule.py index b7edf21b4..286bd9451 100644 --- a/gui/fitCommands/calc/fitReplaceModule.py +++ b/gui/fitCommands/calc/fitReplaceModule.py @@ -78,7 +78,7 @@ class FitReplaceModuleCommand(wx.Command): if self.module.isValidState(State.ACTIVE): self.module.state = State.ACTIVE - if self.old_module.charge and self.module.isValidCharge(self.old_module.charge): + if self.old_module and self.old_module.charge and self.module.isValidCharge(self.old_module.charge): self.module.charge = self.old_module.charge # Then, check states of all modules and change where needed. This will recalc if needed