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

Hex spine LOS bug #67

Closed dripton closed 14 years ago

dripton commented 14 years ago

Plain, entry side 5, attacking ranger in C1, attacking angel in C2, defending troll in B1, nothing in B1. The ranger was unable to rangestrike the troll, even though the LOS through B1 is clear.

dripton commented 14 years ago

Added a unit test that demonstrates this in [55fc0ed9a40c1df0c40053f1165f67a0806c1752]

dripton commented 14 years ago

Note that if we change the entry side to 1 or 3, then the rangestrike is allowed.

dripton commented 14 years ago

Add a missing abs() call in is_los_blocked. Closed by 6a34109eecff9bbeee7d245c0b9626ebb9b1e05a.