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

EventLog shows doubles of RevealLegion event before battles #144

Closed dripton closed 13 years ago

dripton commented 13 years ago

Before a battle, EventLog shows something like:

Rd01 (Cross) is revealed as Titan, Angel, Gargoyle Gd02 (Claw) is revealed as Titan, Centaur, Lion Rd01 (Cross) is revealed as Titan, Angel, Gargoyle Gd02 (Claw) is revealed as Titan, Centaur, Lion

The duplicate consecutive event detection fails here because the two RevealLegion events are sent right after each other and we get them like ABAB rather than AABB. So we need to special-case this.