removed card name from constructor
parent
7bfd3db2d7
commit
9b9f2418e5
|
@ -9,27 +9,29 @@ import magic.model.trigger.MagicTrigger;
|
|||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
public class Wall_of_Frost {
|
||||
|
||||
public static final MagicTrigger V9399 =new MagicTrigger(MagicTriggerType.WhenBlocks,"Wall of Frost") {
|
||||
|
||||
public static final MagicTrigger T = new MagicTrigger(MagicTriggerType.WhenBlocks) {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
|
||||
if (permanent==data) {
|
||||
final MagicPermanent blocked=permanent.getBlockedCreature();
|
||||
if (blocked!=null) {
|
||||
return new MagicEvent(permanent,permanent.getController(),new Object[]{blocked},this,
|
||||
blocked.getName()+" doesn't untap during its controller's next untap step.");
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
permanent.getController(),
|
||||
new Object[]{blocked},
|
||||
this,
|
||||
blocked.getName()+" doesn't untap during its controller's next untap step.");
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicChangeStateAction((MagicPermanent)data[0],MagicPermanentState.DoesNotUntap,true));
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -11,28 +11,32 @@ import magic.model.trigger.MagicTrigger;
|
|||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
public class Wall_of_Reverence {
|
||||
|
||||
public static final MagicTrigger V9421 =new MagicTrigger(MagicTriggerType.AtEndOfTurn,"Wall of Reverence") {
|
||||
|
||||
public static final MagicTrigger T = new MagicTrigger(MagicTriggerType.AtEndOfTurn) {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
|
||||
final MagicPlayer player=permanent.getController();
|
||||
if (player==data) {
|
||||
return new MagicEvent(permanent,player,MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,MagicPowerTargetPicker.getInstance(),
|
||||
new Object[]{player},this,"You gain life equal to the power of target creature$ you control.");
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
|
||||
MagicPowerTargetPicker.getInstance(),
|
||||
new Object[]{player},
|
||||
this,
|
||||
"You gain life equal to the power of target creature$ you control.");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
final MagicPermanent creature=event.getTarget(game,choiceResults,0);
|
||||
if (creature!=null) {
|
||||
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[0],creature.getPower(game)));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -11,26 +11,30 @@ import magic.model.trigger.MagicTrigger;
|
|||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
public class Wort__Boggart_Auntie {
|
||||
|
||||
public static final MagicTrigger V9444 =new MagicTrigger(MagicTriggerType.AtUpkeep,"Wort, Boggart Auntie") {
|
||||
|
||||
public static final MagicTrigger T = new MagicTrigger(MagicTriggerType.AtUpkeep) {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
|
||||
final MagicPlayer player=permanent.getController();
|
||||
if (player==data) {
|
||||
return new MagicEvent(permanent,player,
|
||||
new MagicMayChoice(
|
||||
"You may return target Goblin card from your graveyard to your hand.",MagicTargetChoice.TARGET_GOBLIN_CARD_FROM_GRAVEYARD),
|
||||
MagicGraveyardTargetPicker.getInstance(),MagicEvent.NO_DATA,this,
|
||||
"You may$ return target Goblin card$ from your graveyard to your hand.");
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicMayChoice(
|
||||
"You may return target Goblin card from your graveyard to your hand.",
|
||||
MagicTargetChoice.TARGET_GOBLIN_CARD_FROM_GRAVEYARD),
|
||||
MagicGraveyardTargetPicker.getInstance(),
|
||||
MagicEvent.NO_DATA,
|
||||
this,
|
||||
"You may$ return target Goblin card$ from your graveyard to your hand.");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
|
||||
final MagicCard card=event.getTarget(game,choiceResults,1);
|
||||
if (card!=null) {
|
||||
|
@ -40,5 +44,4 @@ public class Wort__Boggart_Auntie {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -12,29 +12,32 @@ import magic.model.trigger.MagicTrigger;
|
|||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
public class Wrexial__the_Risen_Deep {
|
||||
|
||||
public static final MagicTrigger V9473 =new MagicTrigger(MagicTriggerType.WhenDamageIsDealt,"Wrexial, the Risen Deep") {
|
||||
|
||||
public static final MagicTrigger T = new MagicTrigger(MagicTriggerType.WhenDamageIsDealt) {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
|
||||
final MagicDamage damage=(MagicDamage)data;
|
||||
if (damage.getSource()==permanent&&damage.getTarget().isPlayer()&&damage.isCombat()) {
|
||||
final MagicPlayer player=permanent.getController();
|
||||
return new MagicEvent(permanent,player,
|
||||
new MagicMayChoice(
|
||||
"You may cast target instant or sorcery card from your opponent's graveyard.",
|
||||
MagicTargetChoice.TARGET_INSTANT_OR_SORCERY_CARD_FROM_OPPONENTS_GRAVEYARD),
|
||||
MagicGraveyardTargetPicker.getInstance(),new Object[]{player},this,
|
||||
"You may$ cast target instant or sorcery card$ from your opponent's graveyard without paying its mana cost. "+
|
||||
"If that card would be put into a graveyard this turn, exile it instead.");
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicMayChoice(
|
||||
"You may cast target instant or sorcery card from your opponent's graveyard.",
|
||||
MagicTargetChoice.TARGET_INSTANT_OR_SORCERY_CARD_FROM_OPPONENTS_GRAVEYARD),
|
||||
MagicGraveyardTargetPicker.getInstance(),
|
||||
new Object[]{player},
|
||||
this,
|
||||
"You may$ cast target instant or sorcery card$ from your opponent's graveyard without paying its mana cost. "+
|
||||
"If that card would be put into a graveyard this turn, exile it instead.");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
|
||||
final MagicCard card=event.getTarget(game,choiceResults,1);
|
||||
if (card!=null) {
|
||||
|
@ -46,5 +49,4 @@ public class Wrexial__the_Risen_Deep {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -12,29 +12,31 @@ import magic.model.trigger.MagicTrigger;
|
|||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
public class Wurmcoil_Engine {
|
||||
|
||||
public static final MagicTrigger V9507 =new MagicTrigger(MagicTriggerType.WhenPutIntoGraveyard,"Wurmcoil Engine") {
|
||||
|
||||
public static final MagicTrigger T = new MagicTrigger(MagicTriggerType.WhenPutIntoGraveyard) {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
|
||||
final MagicGraveyardTriggerData triggerData=(MagicGraveyardTriggerData)data;
|
||||
if (MagicLocationType.Play==triggerData.fromLocation) {
|
||||
final MagicPlayer player=permanent.getController();
|
||||
return new MagicEvent(permanent,player,new Object[]{player},this,
|
||||
"You put a 3/3 colorless Wurm artifact creature token with deathtouch and "+
|
||||
"a 3/3 colorless Wurm artifact creature token with lifelink onto the battlefield.");
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{player},
|
||||
this,
|
||||
"You put a 3/3 colorless Wurm artifact creature token with deathtouch and "+
|
||||
"a 3/3 colorless Wurm artifact creature token with lifelink onto the battlefield.");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
final MagicPlayer player=(MagicPlayer)data[0];
|
||||
game.doAction(new MagicPlayTokenAction(player,TokenCardDefinitions.WURM1_TOKEN_CARD));
|
||||
game.doAction(new MagicPlayTokenAction(player,TokenCardDefinitions.WURM2_TOKEN_CARD));
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue