magarena/release/Magarena/scripts/Silver_Inlaid_Dagger.groovy

16 lines
566 B
Groovy

[
new MagicStatic(
MagicLayer.ModPT,
MagicTargetFilter.TARGET_CREATURE) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.add(1,0);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source.getEquippedCreature().hasSubType(MagicSubType.Human) &&
target == source.getEquippedCreature();
}
}
]