1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-12 17:00:08 -09:00

Tests: fixed CryptoplasmTest;

This commit is contained in:
Oleg Agafonov 2018-11-22 06:52:28 +04:00
parent 243ad8cddd
commit 511b4b28c3

View file

@ -52,15 +52,24 @@ public class CryptoplasmTest extends CardTestPlayerBase {
// At the beginning of your upkeep, you may have Cryptoplasm become a copy of another target creature. If you do, Cryptoplasm gains this ability.
addCard(Zone.BATTLEFIELD, playerB, "Cryptoplasm", 1); // {1}{U}{U}
// turn 2 - prepare (crypto to paladin, footsteps to crypto)
// crypto: copy as paladin on upkeep
setChoice(playerB, "Yes");
addTarget(playerB, "Sigiled Paladin");
// footsteps: enchant copy of paladin (crypto)
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Followed Footsteps");
addTarget(playerB, "Sigiled Paladin[only copy]");
// turn 4 - ignore crypto ask for new copy
setChoice(playerB, "No");
setStopAt(4, PhaseStep.END_TURN);
execute();
assertPermanentCount(playerB, "Followed Footsteps", 1);
assertPermanentCount(playerB, "Cryptoplasm", 0);
assertPermanentCount(playerB, "Sigiled Paladin", 2);
assertPermanentCount(playerB, "Cryptoplasm", 0); // it's a copy
assertPermanentCount(playerB, "Sigiled Paladin", 2); // crypto as copy + footstep token as copy
assertPermanentCount(playerA, "Sigiled Paladin", 1); // original
}
/**