mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Adding targets (Part 2/3) (#13765)
Adds target and/or target adjuster to cards whose abilities have the word "target", cards H-R. fix EffectKeyValue text, NestOfScarabs Add X value to effects for CycleTriggeredAbility, use with ValorsFlagship and SharkTyphoon, add test
This commit is contained in:
parent
7be454fb92
commit
219cc53cf4
24 changed files with 321 additions and 817 deletions
|
|
@ -61,6 +61,24 @@ public class CyclingTest extends CardTestPlayerBase {
|
|||
assertPowerToughness(playerB, "Pillarfield Ox", 0, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that X value is correctly read by the resulting triggered ability
|
||||
*/
|
||||
@Test
|
||||
public void cycleSharkTyphoon() {
|
||||
addCard(Zone.HAND, playerA, "Shark Typhoon", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 8);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cycling");
|
||||
setChoice(playerA, "X=6");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
assertGraveyardCount(playerA, "Shark Typhoon", 1);
|
||||
assertPowerToughness(playerA, "Shark Token", 6, 6);
|
||||
assertTappedCount("Island", true, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cycle from graveyard or battlefield should not work.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue