mage
mage copied to clipboard
Tests: on strictMode, can not set a "no choice" for a Player::choose with a target with no valid choice.
I could not properly test [[Early Winter]] second mode, when the targetted opponent control no enchantment to exile:
https://github.com/magefree/mage/blob/65828866ece43130ffb0961b3b2d4b43c2981d31/Mage.Tests/src/test/java/org/mage/test/cards/single/blb/EarlyWinterTest.java#L64-L84
I feel like this is on the TestPlayer
's choose method not being able to handle that situation properly. The card's implementation is quite straightforward:
https://github.com/magefree/mage/blob/65828866ece43130ffb0961b3b2d4b43c2981d31/Mage.Sets/src/mage/cards/e/EarlyWinter.java#L76-L89
Of note, the situation works properly on live test (there is no choice to make, and the spell just resolve with no effect)