Add Leonin Vanguard

master
Ada Joule 2018-11-09 14:25:33 +07:00 committed by Melvin Zhang
parent 593e7df18c
commit 07d9106d02
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,25 @@
[
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,
this,
"If PN controls three or more creatures, SN gets +1/+1 until end of turn and PN gains 1 life."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPermanent permanent = event.getPermanent();
final MagicPlayer player = event.getPlayer();
if (player.getNrOfPermanents(MagicType.Creature) >= 3) {
game.doAction(new ChangeTurnPTAction(permanent, 1, 1);
game.doAction(new ChangeLifeAction(player, 1));
}
}
}
]

View File

@ -6,6 +6,5 @@ type=Creature
subtype=Cat,Soldier
cost={W}
pt=1/1
ability=At the beginning of combat on your turn, if you control three or more creatures, SN gets +1/+1 until end of turn and you gain 1 life.
timing=main
oracle=At the beginning of combat on your turn, if you control three or more creatures, Leonin Vanguard gets +1/+1 until end of turn and you gain 1 life.