Add Aurelia, Exemplar of Justice

master
Ada Joule 2018-11-14 23:28:38 +07:00 committed by Melvin Zhang
parent f49b01ddb4
commit 3e15d41c16
2 changed files with 36 additions and 2 deletions

View File

@ -0,0 +1,34 @@
[
new AtBeginOfCombatTrigger() {
@Override
public boolean accept(final MagicPermanent permanent, final MagicPlayer turnPlayer) {
return permanent.isController(turnPlayer);
}
@Override
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPlayer turnPlayer) {
return new MagicEvent(
permanent,
new MagicMayChoice("Choose a target creature you control?", TARGET_CREATURE_YOU_CONTROL),
this,
"PN chooses up to one target creature PN controls.\$\$ " +
"Until end of turn, that creature gets +2/+0, gains trample if it's red, and gains vigilance if it's white."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
if (event.isYes()) {
event.processTargetPermanent(game, {
game.doAction(new ChangeTurnPTAction(it, 2, 0));
if (it.hasColor(MagicColor.Red)) {
game.doAction(new GainAbilityAction(it, MagicAbility.Trample));
}
if (it.hasColor(MagicColor.White)) {
game.doAction(new GainAbilityAction(it, MagicAbility.Vigilance));
}
});
}
}
}
]

View File

@ -7,7 +7,7 @@ subtype=Angel
cost={2}{R}{W}
pt=2/5
ability=Flying;\
Mentor;\
At the beginning of combat on your turn, choose up to one target creature you control. Until end of turn, that creature gets +2/+0, gains trample if it's red, and gains vigilance if it's white.
Mentor
timing=main
requires_groovy_code
oracle=Flying\nMentor\nAt the beginning of combat on your turn, choose up to one target creature you control. Until end of turn, that creature gets +2/+0, gains trample if it's red, and gains vigilance if it's white.