Add test for Tomik

This commit is contained in:
Alex W. Jackson 2022-09-22 21:00:07 -04:00
parent 020503c826
commit b7151cfa58
2 changed files with 31 additions and 1 deletions

View file

@ -25,7 +25,6 @@ public final class TomikDistinguishedAdvokist extends CardImpl {
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN, SubType.ADVISOR);
this.subtype.add();
this.power = new MageInt(2);
this.toughness = new MageInt(3);

View file

@ -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);
}
}