Add script for Runes of the Deus
parent
b125d86f4f
commit
5edf80391d
|
@ -0,0 +1,43 @@
|
|||
[
|
||||
new MagicStatic(MagicLayer.ModPT) {
|
||||
@Override
|
||||
public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
|
||||
pt.add(1, 1);
|
||||
}
|
||||
@Override
|
||||
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
||||
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Red);
|
||||
}
|
||||
},
|
||||
new MagicStatic(MagicLayer.Ability) {
|
||||
@Override
|
||||
public void modAbilityFlags(final MagicPermanent source, final MagicPermanent permanent, final Set<MagicAbility> flags) {
|
||||
flags.add(MagicAbility.DoubleStrike);
|
||||
}
|
||||
@Override
|
||||
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
||||
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Red);
|
||||
}
|
||||
},
|
||||
new MagicStatic(MagicLayer.ModPT) {
|
||||
@Override
|
||||
public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
|
||||
pt.add(1, 1);
|
||||
}
|
||||
@Override
|
||||
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
||||
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Green);
|
||||
}
|
||||
},
|
||||
new MagicStatic(MagicLayer.Ability) {
|
||||
@Override
|
||||
public void modAbilityFlags(final MagicPermanent source, final MagicPermanent permanent, final Set<MagicAbility> flags) {
|
||||
flags.add(MagicAbility.Trample);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
||||
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Green);
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,11 @@
|
|||
name=Runes of the Deus
|
||||
url=http://magiccards.info/shm/en/215.html
|
||||
image=http://magiccards.info/scans/en/shm/215.jpg
|
||||
value=3.800
|
||||
rarity=C
|
||||
type=Enchantment
|
||||
subtype=Aura
|
||||
cost={4}{R/G}
|
||||
timing=enchantment
|
||||
enchant=pump,pos creature
|
||||
requires_groovy_code
|
Loading…
Reference in New Issue