mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
[KHM] fixed Frostpyre Arcanist being used incorrectly by AI (#7488)
This commit is contained in:
parent
3727e2ea42
commit
bc99de1a48
3 changed files with 60 additions and 10 deletions
|
|
@ -0,0 +1,50 @@
|
|||
package org.mage.test.cards.single.khm;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class FrostpyreArcanistTest extends CardTestPlayerBase {
|
||||
|
||||
private static final String arcanist = "Frostpyre Arcanist";
|
||||
private static final String bolt = "Lightning Bolt";
|
||||
|
||||
@Test
|
||||
public void testCanFind() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 5);
|
||||
addCard(Zone.LIBRARY, playerA, bolt);
|
||||
addCard(Zone.GRAVEYARD, playerA, bolt);
|
||||
addCard(Zone.HAND, playerA, arcanist);
|
||||
|
||||
addTarget(playerA, bolt);
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, arcanist);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertLibraryCount(playerA, bolt, 0);
|
||||
assertHandCount(playerA, bolt, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCantFind() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 5);
|
||||
addCard(Zone.LIBRARY, playerA, bolt);
|
||||
addCard(Zone.HAND, playerA, arcanist);
|
||||
|
||||
addTarget(playerA, bolt);
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, arcanist);
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLibraryCount(playerA, bolt, 1);
|
||||
assertHandCount(playerA, bolt, 0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue