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:
ssk97 2025-06-18 21:14:16 -07:00 committed by GitHub
parent 7be454fb92
commit 219cc53cf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 321 additions and 817 deletions

View file

@ -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.
*/