* One with the Machine - Fix that non-artifact permanents are considered in determining the amount of cards drawn (fixes #5292).

This commit is contained in:
Quercitron 2018-09-01 16:10:51 +03:00
parent 470fd4c75a
commit 9593462520
2 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,31 @@
package org.mage.test.cards.single.m19;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author Quercitron
*/
public class OneWithTheMachineTest extends CardTestPlayerBase {
@Test
public void testOnlyArtifactsAreConsidered() {
// Draw cards equal to the highest converted mana cost among artifacts you control
addCard(Zone.HAND, playerA, "One with the Machine");
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
// CMC = 2, artifact
addCard(Zone.BATTLEFIELD, playerA, "Millstone");
// CMC = 6, not artifact
addCard(Zone.BATTLEFIELD, playerA, "Colossal Dreadmaw");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "One with the Machine");
execute();
assertHandCount(playerA, 2);
}
}