Added a test.

This commit is contained in:
LevelX2 2016-11-13 22:29:26 +01:00
parent 12f0462300
commit cd61bf48d1
2 changed files with 45 additions and 6 deletions

View file

@ -53,7 +53,7 @@ public class HavengulLichTest extends CardTestPlayerBase {
@Test
public void testCard2() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
// {1}: You may cast target creature card in a graveyard this turn. When you cast that card this turn, Havengul Lich
// {1}: You may cast target creature card in a graveyard this turn. When you cast that card this turn, Havengul Lich
// gains all activated abilities of that card until end of turn.
addCard(Zone.BATTLEFIELD, playerA, "Havengul Lich");
// {T}: Prodigal Pyromancer deals 1 damage to target creature or player.
@ -75,4 +75,42 @@ public class HavengulLichTest extends CardTestPlayerBase {
assertGraveyardCount(playerA, 0);
}
/**
* hey i play a Havengul Lich and Heartless Summoning deck. and every time
* the lich is on the field as the same time as heartless summoning i cant
* use the lich's ability correctly. because if you know magic you know that
* a creature with one toughness will still enter the battlefield and
* immediately die but the creature's effect will still trigger. like when i
* "cast" Perilous Myr from the graveyard with the lich it doesn't actually
* enter the battlefield and its death ability doesn't trigger! and that is
* one of my decks i cast from the graveyard with the lich and things are
* SUPPOSED to enter the battlefield and die triggering whatever ability the
* creature might have alot like "myr retriever"! plz fix it, this is the
* second time i have had to mention this problem!
*/
@Test
public void testCardHeartlessSummoning() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
// {1}: You may cast target creature card in a graveyard this turn. When you cast that card this turn, Havengul Lich
// gains all activated abilities of that card until end of turn.
addCard(Zone.BATTLEFIELD, playerA, "Havengul Lich");
// Creature spells you cast cost {2} less to cast.
// Creatures you control get -1/-1.
addCard(Zone.BATTLEFIELD, playerA, "Heartless Summoning"); // Enchantment
// When Perilous Myr dies, it deals 2 damage to target creature or player.
addCard(Zone.GRAVEYARD, playerA, "Perilous Myr");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}: You may", "Perilous Myr");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Perilous Myr");
addTarget(playerA, playerB);
execute();
assertLife(playerA, 20);
assertLife(playerB, 18);
assertPermanentCount(playerA, "Havengul Lich", 1);
assertGraveyardCount(playerA, "Perilous Myr", 1);
}
}