changeset 348:685b782a4da4

Fix issue when disabling low life trigger
author Thibaut Girka <thib@sitedethib.com>
date Thu, 05 Jul 2012 01:06:02 +0200
parents b150ed7188a2
children 96e30d6268dd
files pytouhou/games/eosd.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/games/eosd.py
+++ b/pytouhou/games/eosd.py
@@ -151,7 +151,7 @@ class EoSDInterface(object):
 
 
     def set_spell_life(self):
-        self.boss_items[2].set_value(self.game.boss._enemy.low_life_trigger)
+        self.boss_items[2].set_value(self.game.boss._enemy.low_life_trigger if self.game.boss else 0)
 
 
     def update(self):