mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Merge pull request #3020 from drmDev/ut/halimar
#3005 halimar tidecaller unit test. unable to duplicate issue.
This commit is contained in:
commit
420e9e2ebe
1 changed files with 50 additions and 0 deletions
|
@ -0,0 +1,50 @@
|
|||
package org.mage.test.cards.single.bfz;
|
||||
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author escplan9
|
||||
*/
|
||||
public class HalimarTidecallerTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testMe() {
|
||||
|
||||
/*
|
||||
Halimar Tidecaller {2}{U}
|
||||
Creature — Human Wizard Ally 2/3
|
||||
When Halimar Tidecaller enters the battlefield, you may return target card with awaken from your graveyard to your hand.
|
||||
Land creatures you control have flying.
|
||||
*/
|
||||
String hTidecaller = "Halimar Tidecaller";
|
||||
|
||||
/*
|
||||
Treetop Village
|
||||
Land
|
||||
Treetop Village enters the battlefield tapped.
|
||||
{T}: Add Green to your mana pool.
|
||||
{1}{G}: Treetop Village becomes a 3/3 green Ape creature with trample until end of turn. It's still a land.
|
||||
*/
|
||||
String tVillage = "Treetop Village";
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, hTidecaller);
|
||||
addCard(Zone.BATTLEFIELD, playerA, tVillage);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 2);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}{G}:"); // activate tree-top
|
||||
attack(1, playerA, tVillage);
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerB, 17); // 3 damage from tree-top
|
||||
assertAbility(playerA, tVillage, FlyingAbility.getInstance(), true);
|
||||
assertAbility(playerA, tVillage, TrampleAbility.getInstance(), true);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue