Mercurial > repos > IBBoard.WarFoundry.API
diff API/Objects/Requirement/AbstractUnitRequirement.cs @ 456:52baffdd2ab9
Re #379: Fix validation of requirements to check for unit
* Default to not being applicable - make requirements say when they are
* Fix UnitRequiresNUnitsForMUnitsRequirement to not be applicable when adding unrelated units (even if army itself fails the rule)
* Fix type casting issues in equality check
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 25 Feb 2012 16:35:31 +0000 |
parents | afc6410e4efc |
children | 8e01c3174cc3 |
line wrap: on
line diff
--- a/API/Objects/Requirement/AbstractUnitRequirement.cs Wed Feb 22 20:45:39 2012 +0000 +++ b/API/Objects/Requirement/AbstractUnitRequirement.cs Sat Feb 25 16:35:31 2012 +0000 @@ -64,12 +64,12 @@ protected virtual bool IsApplicable(Army toArmy) { - return true; + return false; } protected virtual bool IsApplicable(IWarFoundryObject toObject) { - return true; + return false; } public string GetValidationMessage(Army army)