riverwanderer / ccnapoleonics

Commands & Colors: Napoleonics on vassalengine.org
https://boardgamegeek.com/boardgame/62222/commands-and-colors-napoleonics
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Infantry Forward Leader play is allowed when a Leader moves on or off the unit #300

Closed riverwanderer closed 1 month ago

riverwanderer commented 1 month ago

Module V5.1.0beta7 Vassal V3.7.14

Infantry Forward Leader play is allowed when a Leader moves on or off the unit

riverwanderer commented 1 month ago

Attached leader check had not been updated in the canPlay calculation. Should be ap_origLoc == origLoc to disable play via a just-joined Leader. IFL action also updated to re-attach/unordered an ordered leader. IFL should also disable an LBO play on the Leader (is it is required for IFL). Fixes in a836.

Also, all TC action pieces placed by a parent widget still preserved tcTgt attachments from the earlier iteration of the TC marker mechanism; modified these to clear attachments and attach only at the location. Legacy mechanic still in place for LhB and IIL.