mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Merge origin/master
This commit is contained in:
commit
35c3753e56
1 changed files with 103 additions and 0 deletions
|
@ -156,4 +156,107 @@ public class TamiyoTest extends CardTestPlayerBase {
|
|||
assertLife(playerB, 18);
|
||||
assertHandCount(playerA, 2); // Sylvan Advocate dealt combat damage twice
|
||||
}
|
||||
|
||||
/*
|
||||
* Reported bug: Tamiyo's +1 ability remains on the creature for the entirety of the game.
|
||||
*/
|
||||
@Test
|
||||
public void testFieldResearcherFirstEffectOnlyPersistsUntilYourNextTurn() {
|
||||
|
||||
/*
|
||||
// Tamiyo, Field Researcher {1}{G}{W}{U} - 4 loyalty
|
||||
+1: Choose up to two target creatures. Until your next turn, whenever either of those creatures deals combat damage, you draw a card.
|
||||
−2: Tap up to two target nonland permanents. They don't untap during their controller's next untap step.
|
||||
−7: Draw three cards. You get an emblem with "You may cast nonland cards from your hand without paying their mana costs."
|
||||
*/
|
||||
addCard(Zone.HAND, playerA, "Tamiyo, Field Researcher", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Sylvan Advocate", 1); // 2/3
|
||||
|
||||
addCard(Zone.HAND, playerB, "Hero's Downfall", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Memnite", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Swamp", 3);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Tamiyo, Field Researcher");
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+1: Choose up to two");
|
||||
addTarget(playerA, "Sylvan Advocate");
|
||||
|
||||
attack(1, playerA, "Sylvan Advocate");
|
||||
|
||||
attack(2, playerB, "Memnite");
|
||||
block(2, playerA, "Sylvan Advocate", "Memnite");
|
||||
|
||||
castSpell(3, PhaseStep.UPKEEP, playerB, "Hero's Downfall");
|
||||
addTarget(playerB, "Tamiyo, Field Researcher");
|
||||
|
||||
attack(3, playerA, "Sylvan Advocate"); // should not get extra card
|
||||
|
||||
setStopAt(3, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Tamiyo, Field Researcher", 1);
|
||||
assertGraveyardCount(playerB, "Hero's Downfall", 1);
|
||||
assertLife(playerB, 16);
|
||||
assertHandCount(playerA, 3); // 2 cards drawn from Advocate + 1 card during T3 draw step.
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFieldResearcherFirstAbilityTargetOpponentCreature() {
|
||||
/*
|
||||
// Tamiyo, Field Researcher {1}{G}{W}{U} - 4 loyalty
|
||||
+1: Choose up to two target creatures. Until your next turn, whenever either of those creatures deals combat damage, you draw a card.
|
||||
−2: Tap up to two target nonland permanents. They don't untap during their controller's next untap step.
|
||||
−7: Draw three cards. You get an emblem with "You may cast nonland cards from your hand without paying their mana costs."
|
||||
*/
|
||||
addCard(Zone.HAND, playerA, "Tamiyo, Field Researcher", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Bronze Sable", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Tamiyo, Field Researcher");
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+1: Choose up to two");
|
||||
addTarget(playerA, "Bronze Sable");
|
||||
|
||||
attack(2, playerB, "Bronze Sable");
|
||||
|
||||
setStopAt(2, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 18);
|
||||
assertHandCount(playerA, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFieldResearcherFirstAbilityTargetOpponentCreatures() {
|
||||
/*
|
||||
// Tamiyo, Field Researcher {1}{G}{W}{U} - 4 loyalty
|
||||
+1: Choose up to two target creatures. Until your next turn, whenever either of those creatures deals combat damage, you draw a card.
|
||||
−2: Tap up to two target nonland permanents. They don't untap during their controller's next untap step.
|
||||
−7: Draw three cards. You get an emblem with "You may cast nonland cards from your hand without paying their mana costs."
|
||||
*/
|
||||
addCard(Zone.HAND, playerA, "Tamiyo, Field Researcher", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Bronze Sable", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Memnite", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Tamiyo, Field Researcher");
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+1: Choose up to two");
|
||||
addTarget(playerA, "Bronze Sable^Memnite");
|
||||
|
||||
attack(2, playerB, "Bronze Sable");
|
||||
attack(2, playerB, "Memnite");
|
||||
|
||||
setStopAt(2, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 17);
|
||||
assertHandCount(playerA, 2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue