Merge pull request #243 from blitzmann/issue-156

Fix #156
This commit is contained in:
Anton Vorobyov
2015-01-10 18:21:30 +03:00

View File

@@ -406,12 +406,14 @@ class Fit(object):
(effect.isType("active") and thing.state >= State.ACTIVE):
# Run effect, and get proper bonuses applied
try:
self.register(thing)
effect.handler(self, thing, context)
except:
pass
else:
# Run effect, and get proper bonuses applied
try:
self.register(thing)
effect.handler(self, thing, context)
except:
pass