fixed replicate mechanic for Gigadrowse
parent
d718c21c06
commit
2cf1023ae4
|
@ -3,9 +3,11 @@ package magic.card;
|
||||||
import magic.model.MagicGame;
|
import magic.model.MagicGame;
|
||||||
import magic.model.MagicPayedCost;
|
import magic.model.MagicPayedCost;
|
||||||
import magic.model.MagicPermanent;
|
import magic.model.MagicPermanent;
|
||||||
|
import magic.model.MagicManaCost;
|
||||||
import magic.model.action.MagicPermanentAction;
|
import magic.model.action.MagicPermanentAction;
|
||||||
import magic.model.action.MagicTapAction;
|
import magic.model.action.MagicTapAction;
|
||||||
import magic.model.choice.MagicTargetChoice;
|
import magic.model.choice.MagicTargetChoice;
|
||||||
|
import magic.model.choice.MagicKickerChoice;
|
||||||
import magic.model.event.MagicEvent;
|
import magic.model.event.MagicEvent;
|
||||||
import magic.model.event.MagicSpellCardEvent;
|
import magic.model.event.MagicSpellCardEvent;
|
||||||
import magic.model.stack.MagicCardOnStack;
|
import magic.model.stack.MagicCardOnStack;
|
||||||
|
@ -20,7 +22,7 @@ public class Gigadrowse {
|
||||||
return new MagicEvent(
|
return new MagicEvent(
|
||||||
cardOnStack.getCard(),
|
cardOnStack.getCard(),
|
||||||
cardOnStack.getController(),
|
cardOnStack.getController(),
|
||||||
MagicTargetChoice.NEG_TARGET_PERMANENT,
|
new MagicKickerChoice(MagicTargetChoice.NEG_TARGET_PERMANENT, MagicManaCost.BLUE, true, true),
|
||||||
new MagicTapTargetPicker(true,false),
|
new MagicTapTargetPicker(true,false),
|
||||||
MagicEvent.NO_DATA,
|
MagicEvent.NO_DATA,
|
||||||
this,
|
this,
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
package magic.test;
|
||||||
|
|
||||||
|
import magic.model.MagicGame;
|
||||||
|
import magic.model.MagicPlayer;
|
||||||
|
import magic.model.MagicPlayerDefinition;
|
||||||
|
import magic.model.MagicPlayerProfile;
|
||||||
|
import magic.model.MagicDuel;
|
||||||
|
import magic.model.phase.MagicMainPhase;
|
||||||
|
|
||||||
|
class TestGigadrowse extends TestGameBuilder {
|
||||||
|
public MagicGame getGame() {
|
||||||
|
final MagicDuel duel=new MagicDuel();
|
||||||
|
duel.setDifficulty(6);
|
||||||
|
|
||||||
|
final MagicPlayerProfile profile=new MagicPlayerProfile("bgruw");
|
||||||
|
final MagicPlayerDefinition player1=new MagicPlayerDefinition("Player",false,profile,15);
|
||||||
|
final MagicPlayerDefinition player2=new MagicPlayerDefinition("Computer",true,profile,14);
|
||||||
|
duel.setPlayers(new MagicPlayerDefinition[]{player1,player2});
|
||||||
|
duel.setStartPlayer(0);
|
||||||
|
|
||||||
|
final MagicGame game=duel.nextGame(true);
|
||||||
|
game.setPhase(MagicMainPhase.getFirstInstance());
|
||||||
|
final MagicPlayer player=game.getPlayer(0);
|
||||||
|
final MagicPlayer opponent=game.getPlayer(1);
|
||||||
|
|
||||||
|
MagicPlayer P = player;
|
||||||
|
|
||||||
|
P.setLife(20);
|
||||||
|
addToLibrary(P, "Plains", 10);
|
||||||
|
createPermanent(game,P,"Rupture Spire",false,8);
|
||||||
|
createPermanent(game,P,"Sun Titan",false,1);
|
||||||
|
addToHand(P,"Gigadrowse",1);
|
||||||
|
|
||||||
|
|
||||||
|
P = opponent;
|
||||||
|
|
||||||
|
P.setLife(20);
|
||||||
|
addToLibrary(P, "Plains", 10);
|
||||||
|
createPermanent(game,P,"Rupture Spire",false,8);
|
||||||
|
createPermanent(game,P,"Sun Titan",false,3);
|
||||||
|
|
||||||
|
return game;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue