Fix a bug in Tribal Unity

BoostAllOfChosenSubtypeEffect was too specific and didn’t apply to this
situation. It has been replaced with it’s superclass BoostAllEffect
This commit is contained in:
Samuel Sandeen 2016-07-24 18:02:22 -04:00
parent 05d88b46dd
commit 5e26638ab5
2 changed files with 25 additions and 3 deletions

View file

@ -59,4 +59,27 @@ public class BoostAllTest extends CardTestPlayerBase {
}
@Test
public void testTribalUnity() {
// Creatures of the chosen type get +X/+X
addCard(Zone.HAND, playerA, "Tribal Unity", 1);
addCard(Zone.BATTLEFIELD, playerA, "Forest", 5);
addCard(Zone.BATTLEFIELD, playerA, "Akki Blizzard-Herder", 1); // 1/1
addCard(Zone.BATTLEFIELD, playerA, "Bloom Tender", 1); // 1/1
addCard(Zone.BATTLEFIELD, playerB, "Akki Blizzard-Herder", 1); // 1/1
addCard(Zone.BATTLEFIELD, playerB, "Bloom Tender", 1); // 1/1
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Tribal Unity");
setChoice(playerA, "X=2");
setChoice(playerA, "Elf");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertPowerToughness(playerA, "Akki Blizzard-Herder", 1, 1);
assertPowerToughness(playerA, "Bloom Tender", 3, 3);
assertPowerToughness(playerB, "Akki Blizzard-Herder", 1, 1);
assertPowerToughness(playerB, "Bloom Tender", 3, 3);
}
}