Permalink
Browse files

Do not check battle turn for summoning if the battle is over.

  • Loading branch information...
1 parent 0871ea8 commit 2315a7c15e065658f262a81980bf8fd27d06d494 @dripton committed Aug 10, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 slugathon/ai/CleverBot.py
@@ -322,8 +322,7 @@ def summon_angel_after(self, game):
legion = game.attacker_legion
assert legion.player.name == self.playername
summonables = []
- if (legion.can_summon and game.first_attacker_kill in
- [game.battle_turn - 1, game.battle_turn]):
+ if legion.can_summon:
for legion2 in legion.player.legions:
if not legion2.engaged:
for creature in legion2.creatures:

0 comments on commit 2315a7c

Please sign in to comment.