added zachsoulsister.dec. added Untamed Might
parent
d8fbcef2f1
commit
8f08634950
|
@ -0,0 +1,11 @@
|
|||
# 6 creatures
|
||||
4 Ajani's Pridemate
|
||||
4 Champion of the Parish
|
||||
4 Serra Ascendant
|
||||
4 Soul Warden
|
||||
4 Soul's Attendant
|
||||
4 Suture Priest
|
||||
|
||||
# 1 lands
|
||||
16 Plains
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
>Untamed Might
|
||||
url=http://magiccards.info/som/en/131.html
|
||||
image=http://magiccards.info/scans/en/som/131.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Instant
|
||||
color=g
|
||||
converted=1
|
||||
cost={X}{G}
|
||||
timing=pump
|
||||
requires_card_code
|
|
@ -0,0 +1,49 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicChangeTurnPTAction;
|
||||
import magic.model.action.MagicMoveCardAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicSpellCardEvent;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.target.MagicPumpTargetPicker;
|
||||
|
||||
public class Untamed_Might {
|
||||
public static final MagicSpellCardEvent S = new MagicSpellCardEvent() {
|
||||
@Override
|
||||
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
||||
final MagicPlayer player = cardOnStack.getController();
|
||||
final int amount = payedCost.getX();
|
||||
return new MagicEvent(
|
||||
cardOnStack.getCard(),
|
||||
player,
|
||||
MagicTargetChoice.POS_TARGET_CREATURE,
|
||||
MagicPumpTargetPicker.getInstance(),
|
||||
new Object[]{cardOnStack,amount},
|
||||
this,
|
||||
"Target creature$ gets +" + amount +
|
||||
"/+" + amount + " until end of turn.");
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object[] data,
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0]));
|
||||
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent creature) {
|
||||
game.doAction(new MagicChangeTurnPTAction(
|
||||
creature,
|
||||
(Integer)data[1],
|
||||
(Integer)data[1]));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue