added Screeching Silcaw and Snapsail Glider
parent
dbafe1ab6c
commit
1658766982
|
@ -11512,3 +11512,27 @@ cost={3}{U}
|
|||
pt=2/2
|
||||
ability=flying
|
||||
timing=main
|
||||
|
||||
>Screeching Silcaw
|
||||
image=http://magiccards.info/scans/en/som/42.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Bird
|
||||
color=u
|
||||
converted=2
|
||||
cost={1}{U}
|
||||
pt=1/2
|
||||
ability=flying
|
||||
timing=main
|
||||
|
||||
>Snapsail Glider
|
||||
image=http://magiccards.info/scans/en/som/203.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Artifact,Creature
|
||||
subtype=Construct
|
||||
converted=3
|
||||
cost={3}
|
||||
pt=2/2
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicDamage;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicType;
|
||||
import magic.model.action.MagicMillLibraryAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.target.MagicTarget;
|
||||
import magic.model.trigger.MagicWhenDamageIsDealtTrigger;
|
||||
|
||||
|
||||
public class Screeching_Silcaw {
|
||||
public static final MagicWhenDamageIsDealtTrigger T = new MagicWhenDamageIsDealtTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
||||
final MagicTarget target = damage.getTarget();
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (player.getNrOfPermanentsWithType(MagicType.Artifact,game) >= 3 &&
|
||||
permanent == damage.getSource() &&
|
||||
target.isPlayer() &&
|
||||
damage.isCombat()) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{target},
|
||||
this,
|
||||
target + " puts the top four cards of " +
|
||||
"his or her library into his or her graveyard."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicMillLibraryAction((MagicPlayer)data[0],4));
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicType;
|
||||
import magic.model.mstatic.MagicLayer;
|
||||
import magic.model.mstatic.MagicStatic;
|
||||
|
||||
public class Snapsail_Glider {
|
||||
public static final MagicStatic S = new MagicStatic(MagicLayer.Ability) {
|
||||
@Override
|
||||
public long getAbilityFlags(final MagicGame game,final MagicPermanent permanent,final long flags) {
|
||||
return permanent.getController().getNrOfPermanentsWithType(MagicType.Artifact,game) >= 3 ?
|
||||
flags | MagicAbility.Flying.getMask() :
|
||||
flags;
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue