Fix Sevinne's Reclamation. (#6275)

This also handles the rather unique case caused by Sevinne's Reclamation where the original spell resolves before the copy of it.
Also fixes a couple typos.
This commit is contained in:
Samuel Sandeen 2020-02-10 08:18:12 -05:00 committed by GitHub
parent ae7919cd07
commit d56f6b991b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 17 deletions

View file

@ -375,4 +375,33 @@ public class CopySpellTest extends CardTestPlayerBase {
assertGraveyardCount(playerB, "Flame Slash", 1);
}
/**
* Sevinne's Reclamation is almost unique in that the original spell resolves before the copy.
* As a result when resolving the original the copy was being removed from the stack instead.
*/
@Test
public void testSevinnesReclamation() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 5);
// Return target permanent card with converted mana cost 3 or less from your graveyard to the battlefield.
// If this spell was cast from a graveyard, you may copy this spell and may choose a new target for the copy.
// Flashback 4W
addCard(Zone.GRAVEYARD, playerA, "Sevinne's Reclamation");
addCard(Zone.GRAVEYARD, playerA, "Mountain");
addCard(Zone.GRAVEYARD, playerA, "Island");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Flashback");
addTarget(playerA, "Mountain");
setChoice(playerA, "Yes"); // Copy
setChoice(playerA, "Yes"); // Choose new target
addTarget(playerA, "Island");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
setStrictChooseMode(true);
execute();
assertAllCommandsUsed();
assertPermanentCount(playerA, "Mountain", 1);
assertPermanentCount(playerA, "Island", 1);
}
}