Opened 8 years ago

Closed 8 years ago

#385 closed defect (fixed)

Validation warnings show when not relevant when adding units

Reported by: ibboard Owned by:
Priority: major Milestone: WarFoundry API 0.2
Component: WarFoundry-API Version: Unknown or N/A
Keywords: validation Cc:
Blocked By: Blocking:


Snowblizz modified the test army so that Empire4 required two Empire3 and Empire1 required one Empire9. If an Empire4 is added and then an Empire1 then the "Add Unit" dialog shows warnings about the Empire4 requirement. While the Empire4 requirement is relevant for the "validate army" functions, it isn't relevant to the current action of adding an Empire1.

We need to tidy up the "is valid" checks for adding units so that they only return true when they relate to the clicked unit.

Change History (2)

comment:1 Changed 8 years ago by ibboard

Status: newconfirmed

comment:2 Changed 8 years ago by ibboard

Resolution: fixed
Status: confirmedclosed

Fixed with #379 for all known cases (unit tests reassessed and rebuilt)

Note: See TracTickets for help on using tickets.