added Ferocity and Gang of Elk
parent
6ea7955cef
commit
1f47eec768
|
@ -14350,4 +14350,29 @@ converted=4
|
|||
cost={3}{B}
|
||||
pt=1/2
|
||||
ability=lifelink
|
||||
timing=main
|
||||
|
||||
>Ferocity
|
||||
url=http://magiccards.info/mm/en/245.html
|
||||
image=http://magiccards.info/scans/en/mm/245.jpg
|
||||
value=3
|
||||
rarity=C
|
||||
type=Enchantment
|
||||
subtype=Aura
|
||||
color=g
|
||||
converted=2
|
||||
cost={1}{G}
|
||||
timing=aura
|
||||
|
||||
>Gang of Elk
|
||||
url=http://magiccards.info/7e/en/247.html
|
||||
image=http://magiccards.info/scans/en/7e/247.jpg
|
||||
value=4
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Elk,Beast
|
||||
color=g
|
||||
converted=6
|
||||
cost={5}{G}
|
||||
pt=5/4
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicChangeCountersAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicSimpleMayChoice;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicPlayAuraEvent;
|
||||
import magic.model.event.MagicSpellCardEvent;
|
||||
import magic.model.target.MagicPumpTargetPicker;
|
||||
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
|
||||
import magic.model.trigger.MagicWhenBlocksTrigger;
|
||||
|
||||
public class Ferocity {
|
||||
public static final MagicSpellCardEvent S = new MagicPlayAuraEvent(
|
||||
MagicTargetChoice.POS_TARGET_CREATURE,
|
||||
MagicPumpTargetPicker.getInstance());
|
||||
|
||||
public static final MagicWhenBecomesBlockedTrigger T1 = new MagicWhenBecomesBlockedTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
||||
final MagicPermanent enchantedCreature = permanent.getEnchantedCreature();
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (creature == enchantedCreature) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may put a +1/+1 counter on " + enchantedCreature + ".",
|
||||
MagicSimpleMayChoice.ADD_PLUSONE_COUNTER,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_YES),
|
||||
new Object[]{enchantedCreature},
|
||||
this,
|
||||
player + " may put a +1/+1 counter on " + enchantedCreature + ".") :
|
||||
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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public static final MagicWhenBlocksTrigger T2 = new MagicWhenBlocksTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
||||
final MagicPermanent enchantedCreature = permanent.getEnchantedCreature();
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (creature == enchantedCreature) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may put a +1/+1 counter on " + enchantedCreature + ".",
|
||||
MagicSimpleMayChoice.ADD_PLUSONE_COUNTER,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_YES),
|
||||
new Object[]{enchantedCreature},
|
||||
this,
|
||||
player + " may put a +1/+1 counter on " + enchantedCreature + ".") :
|
||||
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,37 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.MagicChangeTurnPTAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
|
||||
|
||||
public class Gang_of_Elk {
|
||||
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
|
||||
if (data == permanent) {
|
||||
final int amount = permanent.getBlockingCreatures().size() * 2;
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
permanent.getController(),
|
||||
new Object[]{permanent,amount},
|
||||
this,
|
||||
permanent + " gets +" + amount + "/+" + amount + " until end of turn.");
|
||||
}
|
||||
return MagicEvent.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicChangeTurnPTAction(
|
||||
(MagicPermanent)data[0],
|
||||
(Integer)data[1],
|
||||
(Integer)data[1]));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue