added Oona, Queen of the Fae
parent
0f0a586993
commit
e18c876bf4
|
@ -0,0 +1,55 @@
|
||||||
|
[
|
||||||
|
new MagicPermanentActivation(
|
||||||
|
new MagicActivationHints(MagicTiming.Token),
|
||||||
|
"Token"
|
||||||
|
) {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
||||||
|
return [new MagicPayManaCostEvent(source, "{X}{U/B}")];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||||||
|
return new MagicEvent(
|
||||||
|
source,
|
||||||
|
MagicTargetChoice.TARGET_OPPONENT,
|
||||||
|
payedCost.getX(),
|
||||||
|
this,
|
||||||
|
"Choose a color. Target opponent\$ exiles the top RN cards of his or her library. " +
|
||||||
|
"For each card of the chosen color exiled this way, put a 1/1 blue and black Faerie Rogue creature token with flying onto the battlefield."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void executeEvent(final MagicGame outerGame, final MagicEvent outerEvent) {
|
||||||
|
outerEvent.processTargetPlayer(outerGame,new MagicPlayerAction() {
|
||||||
|
public void doAction(final MagicPlayer outerPlayer) {
|
||||||
|
outerGame.addEvent(new MagicEvent(
|
||||||
|
outerEvent.getSource(),
|
||||||
|
MagicColorChoice.ALL_INSTANCE,
|
||||||
|
outerPlayer,
|
||||||
|
{
|
||||||
|
final MagicGame game, final MagicEvent event ->
|
||||||
|
final MagicColor color = event.getChosenColor();
|
||||||
|
final MagicPlayer player = event.getRefPlayer();
|
||||||
|
final int x = outerEvent.getRefInt();
|
||||||
|
for (int i = 0; i < x && player.getLibrary().getCardAtTop() != MagicCard.NONE; i++) {
|
||||||
|
final MagicCard card = player.getLibrary().getCardAtTop();
|
||||||
|
game.doAction(new MagicRemoveCardAction(card,MagicLocationType.OwnersLibrary));
|
||||||
|
game.doAction(new MagicMoveCardAction(card,MagicLocationType.OwnersLibrary,MagicLocationType.Exile));
|
||||||
|
if (card.hasColor(color)) {
|
||||||
|
game.doAction(new MagicPlayTokenAction(
|
||||||
|
event.getPlayer(),
|
||||||
|
TokenCardDefinitions.get("Faerie Rogue")
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} as MagicEventAction,
|
||||||
|
"Chosen color\$."
|
||||||
|
));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -0,0 +1,12 @@
|
||||||
|
name=Oona, Queen of the Fae
|
||||||
|
url=http://magiccards.info/shm/en/172.html
|
||||||
|
image=http://magiccards.info/scans/en/shm/172.jpg
|
||||||
|
value=3.675
|
||||||
|
ability=flying
|
||||||
|
rarity=R
|
||||||
|
type=Legendary,Creature
|
||||||
|
subtype=Faerie,Wizard
|
||||||
|
cost={3}{U/B}{U/B}{U/B}
|
||||||
|
pt=5/5
|
||||||
|
timing=main
|
||||||
|
requires_groovy_code
|
Loading…
Reference in New Issue