added Screeching Skaab and Shriekgeist

master
beholder 2012-03-04 14:05:59 +01:00
parent ba36131c41
commit 1b37cd578a
4 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,13 @@
>Screeching Skaab
url=http://magiccards.info/dka/en/47.html
image=http://magiccards.info/scans/en/dka/47.jpg
value=1
rarity=C
type=Creature
subtype=Zombie
color=u
converted=2
cost={1}{U}
pt=2/1
timing=main
requires_card_code

View File

@ -0,0 +1,14 @@
>Shriekgeist
url=http://magiccards.info/dka/en/49.html
image=http://magiccards.info/scans/en/dka/49.jpg
value=2
rarity=C
type=Creature
subtype=Spirit
color=u
converted=2
cost={1}{U}
pt=1/1
ability=flying
timing=main
requires_card_code

View File

@ -0,0 +1,34 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicPermanent;
import magic.model.action.MagicMillLibraryAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
public class Screeching_Skaab {
public static final MagicWhenComesIntoPlayTrigger T = new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPlayer player) {
return new MagicEvent(
permanent,
player,
new Object[]{player},
this,
player + " puts the top two cards of his " +
"or her library into his or her graveyard.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicMillLibraryAction((MagicPlayer)data[0],2));
}
};
}

View File

@ -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.action.MagicMillLibraryAction;
import magic.model.event.MagicEvent;
import magic.model.target.MagicTarget;
import magic.model.trigger.MagicWhenDamageIsDealtTrigger;
public class Shriekgeist {
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 (permanent == damage.getSource() &&
target.isPlayer() &&
damage.isCombat()) ?
new MagicEvent(
permanent,
player,
new Object[]{target},
this,
target + " puts the top two 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],2));
}
};
}