Add script for Plague Sliver
parent
0bc2087b4f
commit
e9bb7c41fa
|
@ -0,0 +1,30 @@
|
||||||
|
|
||||||
|
def PlaugeDamage = new MagicAtUpkeepTrigger() {
|
||||||
|
@Override
|
||||||
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
|
||||||
|
return permanent.isController(upkeepPlayer) ?
|
||||||
|
new MagicEvent(
|
||||||
|
permanent,
|
||||||
|
this,
|
||||||
|
"SN deals 1 damage to PN."
|
||||||
|
) :
|
||||||
|
MagicEvent.NONE;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||||||
|
final MagicDamage damage=new MagicDamage(event.getSource(),event.getPlayer(),1);
|
||||||
|
game.doAction(new MagicDealDamageAction(damage));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
[
|
||||||
|
new MagicStatic(
|
||||||
|
MagicLayer.Ability,
|
||||||
|
MagicTargetFilter.TARGET_SLIVER
|
||||||
|
) {
|
||||||
|
@Override
|
||||||
|
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
|
||||||
|
permanent.addAbility(PlaugeDamage);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -0,0 +1,12 @@
|
||||||
|
name=Plague Sliver
|
||||||
|
url=http://magiccards.info/ts/en/124.html
|
||||||
|
image=http://magiccards.info/scans/en/ts/124.jpg
|
||||||
|
value=3.722
|
||||||
|
rarity=R
|
||||||
|
type=Creature
|
||||||
|
subtype=Sliver
|
||||||
|
cost={2}{B}{B}
|
||||||
|
pt=5/5
|
||||||
|
timing=main
|
||||||
|
static=all
|
||||||
|
requires_groovy_code
|
Loading…
Reference in New Issue