Skip to content

Commit

Permalink
Add tests to debug issues with Bonecrusher Giant
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilnu committed Feb 2, 2020
1 parent b708494 commit a8d8f4e
Showing 1 changed file with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,68 @@ public void ZadaHedronGrinderBoost() {
assertAbility(playerB, "Silvercoat Lion", FlyingAbility.getInstance(), false);
}

@Test
public void BonecrusherGiantChangeTargetsTo() {
addCard(Zone.BATTLEFIELD, playerA, "Bonecrusher Giant");
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears");
addCard(Zone.BATTLEFIELD, playerA, "Savannah Lions");
addCard(Zone.BATTLEFIELD, playerA, "Plains");
addCard(Zone.HAND, playerA, "Barkshell Blessing");

castSpell(1, PhaseStep.UPKEEP, playerA, "Barkshell Blessing");
setChoice(playerA, "Yes");
setChoice(playerA, "Yes");
addTarget(playerA, "Grizzly Bears");
addTarget(playerA, "Bonecrusher Giant");

setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();

assertPowerToughness(playerA, "Bonecrusher Giant", 6, 5);
assertPowerToughness(playerA, "Grizzly Bears", 4, 4);
assertPowerToughness(playerA, "Savannah Lions", 2, 1);
assertLife(playerA, 18);
}

@Test
public void BonecrusherGiantChangeTargetsFrom() {
addCard(Zone.BATTLEFIELD, playerA, "Bonecrusher Giant");
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears");
addCard(Zone.BATTLEFIELD, playerA, "Savannah Lions");
addCard(Zone.BATTLEFIELD, playerA, "Plains");
addCard(Zone.HAND, playerA, "Barkshell Blessing");

castSpell(1, PhaseStep.UPKEEP, playerA, "Barkshell Blessing");
setChoice(playerA, "Yes");
setChoice(playerA, "Yes");
addTarget(playerA, "Bonecrusher Giant");
addTarget(playerA, "Grizzly Bears");

setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();

assertPowerToughness(playerA, "Bonecrusher Giant", 6, 5);
assertPowerToughness(playerA, "Grizzly Bears", 4, 4);
assertPowerToughness(playerA, "Savannah Lions", 2, 1);
assertLife(playerA, 18);
}

@Test
public void BonecrusherGiantControl() {
addCard(Zone.BATTLEFIELD, playerA, "Bonecrusher Giant");
addCard(Zone.BATTLEFIELD, playerA, "Plains");
addCard(Zone.HAND, playerA, "Barkshell Blessing");

castSpell(1, PhaseStep.UPKEEP, playerA, "Barkshell Blessing");
addTarget(playerA, "Bonecrusher Giant");

setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();

assertPowerToughness(playerA, "Bonecrusher Giant", 6, 5);
assertLife(playerA, 18);
}

/*
* Reported bug: "Silverfur Partisan and fellow wolves did not trigger off
* of copies of Strength of Arms made by Zada, Hedron Grinder. Not sure
Expand Down

0 comments on commit a8d8f4e

Please sign in to comment.