mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
* 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:
parent
470fd4c75a
commit
9593462520
2 changed files with 37 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue