diff options
author | Kevin Hockey <Blitzkev@gmail.com> | 2010-07-15 19:55:09 (GMT) |
---|---|---|
committer | Kevin Hockey <Blitzkev@gmail.com> | 2010-07-15 19:55:09 (GMT) |
commit | 4d99d28ada279d4a9fd7ec5194cbbe0f5b951dc9 (patch) | |
tree | 2dd0b41a63d44b26106bc08eceab63795e46d73a /MAFH2/BattleEngine.py | |
parent | 379fd11be357da66b7ba9677a0dfadf62482f55b (diff) |
Fix for a few bugs
Diffstat (limited to 'MAFH2/BattleEngine.py')
-rw-r--r-- | MAFH2/BattleEngine.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MAFH2/BattleEngine.py b/MAFH2/BattleEngine.py index 66dbbe1..dbbd75b 100644 --- a/MAFH2/BattleEngine.py +++ b/MAFH2/BattleEngine.py @@ -78,7 +78,9 @@ class BattleEngine(GameEngineElement): elif self.state == PLAYER_MULT: self.isMagic = False if selection == 'enter': - #figure out damage for crit attack + #figure out damage for crit attack + if self.player_input == '': + self.player_input = '0' if int(self.player_input) == (self.critAns): menu.set_disp('Correct!') self.correct = True @@ -293,7 +295,9 @@ class BattleEngine(GameEngineElement): #generate enemy attack for enemy in self.enemy_list[:]: if enemy.HP <= 0: + enemy.alive = False self.enemy_list.remove(enemy) + self.active_target = 1 if enemy.alive: random.seed() enemyAttack = random.randint(0,100) |