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

Can't tower teleport with multiple lords in legion #104

Closed dripton closed 14 years ago

dripton commented 14 years ago

When a legion containing multiple lords tries to tower teleport, the PickTeleportingLord dialog pops up, but no matter which lord the player selects, he gets a traceback:

File "/usr/lib/python2.6/site-packages/slugathon/net/User.py", line 84, in perspective_move_legion entry_side, teleport, teleporting_lord) File "/usr/lib/python2.6/site-packages/slugathon/net/Server.py", line 166, in move_legion teleport, teleporting_lord) File "/usr/lib/python2.6/site-packages/slugathon/game/Game.py", line 499, in move_legion raise AssertionError("illegal move attempt")

dripton commented 14 years ago

Pass teleporting lord by name, not object.

Closed by 306f27bb64ddd572ff5d707f498ee21db6742c95