Add Risk Factor

master
Ada Joule 2018-11-25 18:22:33 +07:00 committed by Melvin Zhang
parent fc3d291c5c
commit 4773c60155
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,35 @@
def action = {
final MagicGame game, final MagicEvent event ->
if (event.isYes()) {
game.doAction(new DealDamageAction(event.getSource(), event.getPlayer(), 4));
} else {
game.doAction(new DrawAction(event.getRefPlayer(), 3));
}
}
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
""
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicSource source = event.getSource();
final MagicPlayer player = event.getPlayer();
game.addEvent(new MagicEvent(
source,
player.getOpponent(),
new MagicMayChoice("Have ${source} deal 4 damage to you?"),
player,
action,
"PN may\$ have SN deal 4 damage to them. If PN doesn't, RN draws 3 cards."
));
}
}
]

View File

@ -4,6 +4,7 @@ value=2.500
rarity=R
type=Instant
cost={2}{R}
effect=Target opponent may have SN deal 4 damage to them. If that player doesn't, you draw three cards.~Jump-start
ability=Jump-start
timing=removal
requires_groovy_code
oracle=Target opponent may have Risk Factor deal 4 damage to them. If that player doesn't, you draw three cards.\nJump-start