56 lines
2.1 KiB
Groovy
56 lines
2.1 KiB
Groovy
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
|
|
@Override
|
|
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
|
|
pt.set(3,2);
|
|
}
|
|
};
|
|
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
|
|
@Override
|
|
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
|
|
flags.add(MagicAbility.Unblockable);
|
|
}
|
|
};
|
|
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
|
|
@Override
|
|
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
|
|
flags.add(MagicSubType.Elemental);
|
|
}
|
|
@Override
|
|
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
|
|
return flags|MagicType.Creature.getMask();
|
|
}
|
|
};
|
|
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
|
|
@Override
|
|
public int getColorFlags(final MagicPermanent permanent,final int flags) {
|
|
return MagicColor.Blue.getMask()|MagicColor.Black.getMask();
|
|
}
|
|
};
|
|
[
|
|
new MagicPermanentActivation(
|
|
[new MagicArtificialCondition(
|
|
MagicConditionFactory.ManaCost("{U}{U}{B}{B}")
|
|
)],
|
|
new MagicActivationHints(MagicTiming.Animate),
|
|
"Animate"
|
|
) {
|
|
@Override
|
|
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
|
|
return [new MagicPayManaCostEvent(source,"{1}{U}{B}")];
|
|
}
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"Until end of turn, SN becomes a 3/2 blue and black Elemental creature and is unblockable. " +
|
|
"It's still a land."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
|
|
}
|
|
}
|
|
]
|