added Graypelt Hunter and Hada Freeblade
parent
3ab879939c
commit
07d1388f4e
|
@ -18331,3 +18331,30 @@ cost={1}{B}
|
|||
pt=1/1
|
||||
ability=can't block
|
||||
timing=main
|
||||
|
||||
>Graypelt Hunter
|
||||
url=http://magiccards.info/wwk/en/103.html
|
||||
image=http://magiccards.info/scans/en/wwk/103.jpg
|
||||
value=3
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Human,Warrior,Ally
|
||||
color=g
|
||||
converted=4
|
||||
cost={3}{G}
|
||||
pt=2/2
|
||||
ability=trample
|
||||
timing=main
|
||||
|
||||
>Hada Freeblade
|
||||
url=http://magiccards.info/wwk/en/7.html
|
||||
image=http://magiccards.info/scans/en/wwk/7.jpg
|
||||
value=2
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Human,Soldier,Ally
|
||||
color=w
|
||||
converted=1
|
||||
cost={W}
|
||||
pt=0/1
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSubType;
|
||||
import magic.model.action.MagicChangeCountersAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicSimpleMayChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
|
||||
|
||||
public class Graypelt_Hunter {
|
||||
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (otherPermanent.getController() == player &&
|
||||
otherPermanent.hasSubType(MagicSubType.Ally,game)) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may put a +1/+1 counter on " + permanent + ".",
|
||||
MagicSimpleMayChoice.ADD_PLUSONE_COUNTER,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_YES),
|
||||
new Object[]{permanent},
|
||||
this,
|
||||
player + " may$ put a +1/+1 counter on " + permanent + ".") :
|
||||
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 MagicChangeCountersAction(
|
||||
(MagicPermanent)data[0],
|
||||
MagicCounterType.PlusOne,
|
||||
1,
|
||||
true));
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSubType;
|
||||
import magic.model.action.MagicChangeCountersAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicSimpleMayChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
|
||||
|
||||
public class Hada_Freeblade {
|
||||
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (otherPermanent.getController() == player &&
|
||||
otherPermanent.hasSubType(MagicSubType.Ally,game)) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may put a +1/+1 counter on " + permanent + ".",
|
||||
MagicSimpleMayChoice.ADD_PLUSONE_COUNTER,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_YES),
|
||||
new Object[]{permanent},
|
||||
this,
|
||||
player + " may$ put a +1/+1 counter on " + permanent + ".") :
|
||||
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 MagicChangeCountersAction(
|
||||
(MagicPermanent)data[0],
|
||||
MagicCounterType.PlusOne,
|
||||
1,
|
||||
true));
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue