Add script for Mephidross Vampire

master
hong\ yie 2013-09-06 17:37:11 +00:00
parent bd972adfea
commit e13bc4d93f
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,31 @@
[
new MagicStatic(
MagicLayer.Type,
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent, final Set<MagicSubType> flags) {
flags.add(MagicSubType.Vampire);
}
},
new MagicWhenDamageIsDealtTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
final MagicSource source=damage.getSource();
return source.getController() == permanent.getController() &&
source.isPermanent() && damage.getTarget().isCreature() &&
source.isCreature()?
new MagicEvent(
source,
source.getController(),
this,
"Put +1/+1 counter on SN."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.PlusOne,1,true));
}
}
]

View File

@ -0,0 +1,12 @@
name=Mephidross Vampire
url=http://magiccards.info/5dn/en/53.html
image=http://magiccards.info/scans/en/5dn/53.jpg
value=4.273
rarity=R
type=Creature
subtype=Vampire
cost={4}{B}{B}
pt=3/4
ability=flying
timing=fmain
requires_groovy_code