mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
e679574a15
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. |
||
---|---|---|
.. | ||
config | ||
piperDecks | ||
src | ||
CMDNorinTheWary.dck | ||
CommanderAnafenza_WBG.dck | ||
CommanderDuel.dck | ||
CommanderDuel_Karador_BGW.dck | ||
CommanderDuel_Mairisil_UBR.dck | ||
CommanderDuel_Partners.dck | ||
CommanderDuel_UW.dck | ||
CommanderOviya.dck | ||
JustLands.txt | ||
Oathbreaker_UR.dck | ||
pom.xml | ||
Power Hungry.dck | ||
RB Aggro.dck | ||
UW Control.dck |