added Village Cannibals and Voiceless Spirit
parent
dc9f49792e
commit
aad7a1fdb2
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue