added Fledgling Griffin and Geyser Glider
parent
41be07dfb4
commit
65cc4d750e
|
@ -12344,3 +12344,25 @@ cost={2}{W}{W}
|
|||
pt=3/3
|
||||
ability=flying
|
||||
timing=main
|
||||
|
||||
>Fledgling Griffin
|
||||
image=http://magiccards.info/scans/en/wwk/5.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Griffin
|
||||
converted=2
|
||||
cost={1}{W}
|
||||
pt=2/2
|
||||
timing=main
|
||||
|
||||
>Geyser Glider
|
||||
image=http://magiccards.info/scans/en/zen/124.jpg
|
||||
value=3
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Elemental,Beast
|
||||
converted=5
|
||||
cost={3}{R}{R}
|
||||
pt=4/4
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicSetAbilityAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
|
||||
|
||||
public class Fledgling_Griffin {
|
||||
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent played) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (player == played.getController() && played.isLand()) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{permanent},
|
||||
this,
|
||||
permanent + " gains flying until end of turn."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicSetAbilityAction((MagicPermanent)data[0],MagicAbility.Flying));
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicSetAbilityAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
|
||||
|
||||
public class Geyser_Glider {
|
||||
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent played) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (player == played.getController() && played.isLand()) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{permanent},
|
||||
this,
|
||||
permanent + " gains flying until end of turn."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicSetAbilityAction((MagicPermanent)data[0],MagicAbility.Flying));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue