mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Alternative solution to problem of unplayable cards from target adjustment (#12842)
* Alternative solution to problem of unplayable cards from target adjustment * Review fixes
This commit is contained in:
parent
d293200198
commit
f2ff4828b3
11 changed files with 117 additions and 34 deletions
|
|
@ -215,4 +215,26 @@ public class GiftTest extends CardTestPlayerBase {
|
|||
assertHandCount(playerA, 1);
|
||||
assertHandCount(playerB, 1);
|
||||
}
|
||||
|
||||
//Test Conditional Target Adjuster allowing more generic casts
|
||||
@Test
|
||||
public void testLongRiversPull() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 3);
|
||||
addCard(Zone.HAND, playerA, "Ponder");
|
||||
addCard(Zone.HAND, playerA, "Long River's Pull"); // UU, counter noncreature only if gift
|
||||
|
||||
setChoice(playerA, true);
|
||||
setChoice(playerA, playerB.getName());
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Ponder");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Long River's Pull");
|
||||
addTarget(playerA, "Ponder");
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerA, 0);
|
||||
assertGraveyardCount(playerA, 2);
|
||||
assertHandCount(playerB, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue