mage/Mage.Tests
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
..
config Code cleanup (removed unused log4j setting files, added extra info, samples and instructions, removed java logs) 2020-01-26 16:30:42 +04:00
piperDecks Implementing The Prismatic Piper (Ready for review) (#8164) 2022-03-17 18:02:29 -04:00
src Fixes for Mana.enough and Mana.needed. For #8153 (#8663) 2022-06-01 08:13:37 -06:00
CMDNorinTheWary.dck * Updated decks from test project after change of collectors numbers. 2018-05-11 00:51:47 +02:00
CommanderAnafenza_WBG.dck * Updated decks from test project after change of collectors numbers. 2018-05-11 00:51:47 +02:00
CommanderDuel.dck Change AE to Ae 2016-09-17 16:59:24 +00:00
CommanderDuel_Karador_BGW.dck * Updated decks from test project after change of collectors numbers. 2018-05-11 00:51:47 +02:00
CommanderDuel_Mairisil_UBR.dck * Shifting Shadows - Fixed not proper handling of gained triggered abilities during step resolution of Shifting Shadows effect (fixes #6571). 2020-06-03 15:07:52 +02:00
CommanderDuel_Partners.dck Fix Skyfire Phoenix's triggered ability. 2020-02-01 19:05:46 -05:00
CommanderDuel_UW.dck Added possibility to set a specific deck for a test. 2015-06-14 23:23:26 +02:00
CommanderOviya.dck * Myth Unbound - Fixed the two working abilities(fixe #5347). 2019-01-07 16:39:49 +01:00
JustLands.txt Text import will automatically start sideboard after a single blank line. Added a JUnit test for TxtDeckImporter. 2016-05-30 23:03:43 -04:00
Oathbreaker_UR.dck * Oathbreaker format - Fixed that signate spell didn't return to command zone. Added unit test for oathbreaker format (fixes #6695). 2020-06-23 09:18:40 +02:00
pom.xml Dev: pom clean up, improved parent/child structure; 2021-10-03 18:11:56 +04:00
Power Hungry.dck * Savage Summoning - Fixed that it did not work to cast a commander from command zone. 2015-07-02 23:38:37 +02:00
RB Aggro.dck * Performance: optimized cards database to increase tests and boosters generation; 2021-08-12 23:59:08 +04:00
UW Control.dck Added Mage.Tests project. Update server for test operations. Implemented bdd classes. 2010-12-20 01:03:12 +03:00