added Village Cannibals and Voiceless Spirit

master
beholder 2011-10-01 13:34:17 +02:00
parent dc9f49792e
commit aad7a1fdb2
2 changed files with 64 additions and 0 deletions

View File

@ -5217,3 +5217,28 @@ cost={2}{W}
pt=1/4
ability=flash
timing=main
>Village Cannibals
image=http://magiccards.info/scans/en/isd/125.jpg
value=2
rarity=U
type=Creature
subtype=Human
color=b
converted=3
cost={2}{B}
pt=2/2
timing=main
>Voiceless Spirit
image=http://magiccards.info/scans/en/isd/42.jpg
value=2
rarity=C
type=Creature
subtype=Spirit
color=w
converted=3
cost={2}{W}
pt=2/1
ability=flying,first strike
timing=main

View File

@ -0,0 +1,39 @@
package magic.card;
import magic.model.MagicCounterType;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicSubType;
import magic.model.action.MagicChangeCountersAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenOtherPutIntoGraveyardFromPlayTrigger;
public class Village_Cannibals {
public static final MagicWhenOtherPutIntoGraveyardFromPlayTrigger T = new MagicWhenOtherPutIntoGraveyardFromPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (permanent != otherPermanent &&
otherPermanent.isCreature(game) &&
otherPermanent.hasSubType(MagicSubType.Human,game)) ?
new MagicEvent(
permanent,
permanent.getController(),
new Object[]{permanent},
this,
"Put a +1/+1 counter on " + permanent + "."):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeCountersAction(
(MagicPermanent)data[0],
MagicCounterType.PlusOne,
1,
true));
}
};
}