Add script for Mephidross Vampire
parent
bd972adfea
commit
e13bc4d93f
|
@ -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));
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue