mage/Mage.Tests/src/test
Alex Vasile e679574a15
Fixes for Mana.enough and Mana.needed. For #8153 (#8663)
Fixes to Mana.enough:

mana of any color (ManaType.Any) was being used to pay for colourless mana.
Fixes for Mana.needed:

mana of any color (ManaType.Any) was being used to pay for colourless mana.
calculation for generic mana remaining was using min(0, available) instead of max(0, available) meaning that leftover mana of other types was never used to pay for any leftover generic costs.
Other:

Added tests for both .needed and .enough.
Moved tests some tests from ManaUtilTest to ManaTest
Simplified Mana.subtractCosts by calling Mana.substract first to make use of common functionality.
Added more documentation
Added tests for both .needed
Added more tests for .enough to cover the changes with colourless mana.
2022-06-01 08:13:37 -06:00
..
data Server improves: 2021-10-01 21:52:09 +04:00
java/org/mage/test Fixes for Mana.enough and Mana.needed. For #8153 (#8663) 2022-06-01 08:13:37 -06:00
resources Dev: removed test data from resources to data folder; 2021-10-01 14:10:39 +04:00