magarena/release/Magarena/scripts/Death_Baron.groovy

31 lines
1.2 KiB
Groovy
Raw Normal View History

2013-05-18 20:12:38 -07:00
[
new MagicStatic(
2013-06-23 18:29:26 -07:00
MagicLayer.ModPT,
2013-05-18 20:12:38 -07:00
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL
) {
2012-06-17 05:19:08 -07:00
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
2012-06-17 05:19:08 -07:00
pt.add(1,1);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
2013-06-23 18:29:26 -07:00
return target.hasSubType(MagicSubType.Skeleton) ||
2012-06-17 05:19:08 -07:00
(source != target && target.hasSubType(MagicSubType.Zombie));
}
2013-05-18 20:12:38 -07:00
},
new MagicStatic(
2013-06-23 18:29:26 -07:00
MagicLayer.Ability,
2013-05-18 20:12:38 -07:00
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL
) {
2012-06-17 05:19:08 -07:00
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Deathtouch);
2012-06-17 05:19:08 -07:00
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
2013-06-23 18:29:26 -07:00
return target.hasSubType(MagicSubType.Skeleton) ||
2012-06-17 05:19:08 -07:00
(source != target && target.hasSubType(MagicSubType.Zombie));
}
2013-05-18 20:12:38 -07:00
}
]