mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Merge origin/master
This commit is contained in:
commit
1d450730c0
129 changed files with 5752 additions and 2644 deletions
|
|
@ -0,0 +1,25 @@
|
|||
package org.mage.test.cards.conditional;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class IcequakeTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testIcequakeOnSnowLand(){
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Snow-Covered Plains");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp",10);
|
||||
addCard(Zone.HAND, playerA, "Icequake");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN,playerA, "Icequake", "Snow-Covered Plains");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 19);
|
||||
}
|
||||
}
|
||||
|
|
@ -2598,6 +2598,11 @@ public class TestPlayer implements Player {
|
|||
return computerPlayer.searchLibrary(target, game, targetPlayerId, triggerEvents);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void lookAtAllLibraries(Ability source, Game game) {
|
||||
computerPlayer.lookAtAllLibraries(source, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean flipCoin(Game game) {
|
||||
return computerPlayer.flipCoin(game);
|
||||
|
|
|
|||
|
|
@ -597,6 +597,9 @@ public class PlayerStub implements Player {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void lookAtAllLibraries(Ability source, Game game) {}
|
||||
|
||||
@Override
|
||||
public boolean canPlayLand() {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue