added Razorclaw Bear and Saprazzan Heir
parent
148a9875e1
commit
a704091f39
|
@ -14769,3 +14769,29 @@ converted=3
|
|||
cost={2}{R}
|
||||
pt=2/3
|
||||
timing=main
|
||||
|
||||
>Razorclaw Bear
|
||||
url=http://magiccards.info/po2/en/82.html
|
||||
image=http://magiccards.info/scans/en/po2/82.jpg
|
||||
value=3
|
||||
rarity=R
|
||||
type=Creature
|
||||
subtype=Bear
|
||||
color=g
|
||||
converted=4
|
||||
cost={2}{G}{G}
|
||||
pt=3/3
|
||||
timing=main
|
||||
|
||||
>Saprazzan Heir
|
||||
url=http://magiccards.info/mm/en/99.html
|
||||
image=http://magiccards.info/scans/en/mm/99.jpg
|
||||
value=3
|
||||
rarity=R
|
||||
type=Creature
|
||||
subtype=Merfolk
|
||||
color=u
|
||||
converted=2
|
||||
cost={1}{U}
|
||||
pt=1/1
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.trigger.MagicBecomesBlockedPumpTrigger;
|
||||
|
||||
public class Razorclaw_Bear {
|
||||
public static final MagicBecomesBlockedPumpTrigger T1 = new MagicBecomesBlockedPumpTrigger(2,2);
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicDrawAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicSimpleMayChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
|
||||
|
||||
public class Saprazzan_Heir {
|
||||
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (permanent == data ) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may draw three cards.",
|
||||
MagicSimpleMayChoice.DRAW_CARDS,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_NONE),
|
||||
new Object[]{player},
|
||||
this,
|
||||
player + " may$ draw three cards."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
|
||||
game.doAction(new MagicDrawAction((MagicPlayer)data[0],3));
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue