dripton / Slugathon

Clone of the old Avalon Hill fantasy wargame Titan, using Python / PyGTK / Twisted
https://github.com/dripton/Slugathon/wiki
8 stars 2 forks source link

Put too many Warlock back #132

Closed dripton closed 13 years ago

dripton commented 13 years ago

A defending Warlock died in battle. We then got this exception.

Game.py", line 807, in recruit_creature
     self._end_battle2()
Game.py", line 1266, in _end_battle2
    self.defender_legion.die(self.attacker_legion, False, False)
Legion.py", line 436, in die
    caretaker.kill_one(creature.name)
Caretaker.py", line 50, in kill_one
    self.put_one_back(creature_name)
Caretaker.py", line 40, in put_one_back
    raise AssertionError("Put too many %s back" % creature_name)

I've also seen this with Guardians.

dripton commented 13 years ago

If we try to put back too many lords or demi-lords, don't raise.

Closed by ae17c0d01c81183b5c949683ef6b4ff7b87e6e58