mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Add test for Tomik
This commit is contained in:
parent
020503c826
commit
b7151cfa58
2 changed files with 31 additions and 1 deletions
|
@ -25,7 +25,6 @@ public final class TomikDistinguishedAdvokist extends CardImpl {
|
||||||
|
|
||||||
this.addSuperType(SuperType.LEGENDARY);
|
this.addSuperType(SuperType.LEGENDARY);
|
||||||
this.subtype.add(SubType.HUMAN, SubType.ADVISOR);
|
this.subtype.add(SubType.HUMAN, SubType.ADVISOR);
|
||||||
this.subtype.add();
|
|
||||||
this.power = new MageInt(2);
|
this.power = new MageInt(2);
|
||||||
this.toughness = new MageInt(3);
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
package org.mage.test.cards.single.war;
|
||||||
|
|
||||||
|
import mage.constants.PhaseStep;
|
||||||
|
import mage.constants.Zone;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author awjackson
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class TomikDistinguishedAdvokistTest extends CardTestPlayerBase {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testCanTargetOwnLands() {
|
||||||
|
// https://github.com/magefree/mage/issues/9551
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Forest", 5);
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Tomik, Distinguished Advokist");
|
||||||
|
addCard(Zone.HAND, playerA, "Awakening of Vitu-Ghazi");
|
||||||
|
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Awakening of Vitu-Ghazi");
|
||||||
|
addTarget(playerA, "Forest");
|
||||||
|
|
||||||
|
setStrictChooseMode(true);
|
||||||
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
assertGraveyardCount(playerA, "Awakening of Vitu-Ghazi", 1);
|
||||||
|
assertPermanentCount(playerA, "Vitu-Ghazi", 1);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue