replace player with PN and permanent with SN
parent
93c70e79a3
commit
bc667c7b08
|
@ -29,7 +29,7 @@ public class Avenger_of_Zendikar {
|
|||
permanent,
|
||||
player,
|
||||
this,
|
||||
player + " puts a 0/1 green Plant creature token onto " +
|
||||
"PN puts a 0/1 green Plant creature token onto " +
|
||||
"the battlefield for each land he or she controls.");
|
||||
}
|
||||
@Override
|
||||
|
@ -51,18 +51,14 @@ public class Avenger_of_Zendikar {
|
|||
public static final MagicLandfallTrigger T2 = new MagicLandfallTrigger() {
|
||||
@Override
|
||||
public MagicEvent getEvent(final MagicPermanent permanent) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may put a +1/+1 counter on each " +
|
||||
"Plant creature he or she controls.",
|
||||
MagicSimpleMayChoice.ADD_CHARGE_COUNTER,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_YES),
|
||||
this,
|
||||
player + " may$ put a +1/+1 counter on each " +
|
||||
"PN may$ put a +1/+1 counter on each " +
|
||||
"Plant creature he or she controls.");
|
||||
}
|
||||
@Override
|
||||
|
|
|
@ -42,20 +42,16 @@ public class Creakwood_Liege {
|
|||
};
|
||||
public static final MagicAtUpkeepTrigger T = new MagicAtUpkeepTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer data) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (player == data) ?
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
|
||||
return permanent.isController(upkeepPlayer) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may put a 1/1 black and green " +
|
||||
"Worm creature token onto the battlefield.",
|
||||
MagicSimpleMayChoice.PLAY_TOKEN,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_YES),
|
||||
this,
|
||||
player + " may$ put a 1/1 black and green " +
|
||||
"PN may$ put a 1/1 black and green " +
|
||||
"Worm creature token onto the battlefield."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public class Flame_Kin_Zealot {
|
|||
permanent,
|
||||
player,
|
||||
this,
|
||||
"Creatures " + player + " controls get " +
|
||||
"Creatures PN controls get " +
|
||||
"+1/+1 and gain haste until end of turn.");
|
||||
}
|
||||
@Override
|
||||
|
|
|
@ -13,17 +13,13 @@ public class Gustcloak_Savior {
|
|||
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (creature.getController() == player) ?
|
||||
return permanent.hasSameController(creature) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicMayChoice(player + " may untap " + creature +
|
||||
" and remove it from combat."),
|
||||
new MagicMayChoice(),
|
||||
new Object[]{creature},
|
||||
this,
|
||||
player + " may$ untap " + creature +
|
||||
" and remove it from combat.") :
|
||||
"PN may$ untap " + creature + " and remove it from combat.") :
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,15 +26,13 @@ public class Lighthouse_Chronologist {
|
|||
|
||||
public static final MagicAtEndOfTurnTrigger T = new MagicAtEndOfTurnTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer data) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer eotPlayer) {
|
||||
return (permanent.getCounters(MagicCounterType.Charge) >= 7 &&
|
||||
player != data) ?
|
||||
permanent.isOpponent(eotPlayer)) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
this,
|
||||
player + " takes an extra turn after this one.") :
|
||||
"PN takes an extra turn after this one.") :
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
@Override
|
||||
|
|
|
@ -29,7 +29,7 @@ public class Maul_Splicer {
|
|||
permanent,
|
||||
player,
|
||||
this,
|
||||
player + " puts two 3/3 colorless Golem artifact creature tokens onto the battlefield.");
|
||||
"PN puts two 3/3 colorless Golem artifact creature tokens onto the battlefield.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -15,14 +15,12 @@ public class Seraph_Sanctuary {
|
|||
final MagicGame game,
|
||||
final MagicPermanent permanent,
|
||||
final MagicPermanent otherPermanent) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (otherPermanent.getController() == player &&
|
||||
return (otherPermanent.hasSameController(permanent) &&
|
||||
otherPermanent.hasSubType(MagicSubType.Angel)) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
this,
|
||||
player + " gains 1 life.") :
|
||||
"PN gains 1 life.") :
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,13 +12,11 @@ public class Stonybrook_Schoolmaster {
|
|||
public static final MagicWhenBecomesTappedTrigger T = new MagicWhenBecomesTappedTrigger() {
|
||||
@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,
|
||||
this,
|
||||
player + " puts a 1/1 blue Merfolk Wizard creature token onto the battlefield.") :
|
||||
"PN puts a 1/1 blue Merfolk Wizard creature token onto the battlefield.") :
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
@Override
|
||||
|
|
|
@ -24,7 +24,7 @@ public class Timberland_Guide {
|
|||
MagicTargetChoice.TARGET_CREATURE,
|
||||
MagicPumpTargetPicker.create(),
|
||||
this,
|
||||
player + " puts a +1/+1 counter on target creature$.");
|
||||
"PN puts a +1/+1 counter on target creature$.");
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
|
|
|
@ -42,12 +42,10 @@ public class Wren_s_Run_Packmaster {
|
|||
|
||||
@Override
|
||||
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||||
final MagicPlayer player = source.getController();
|
||||
return new MagicEvent(
|
||||
source,
|
||||
player,
|
||||
this,
|
||||
player + " puts a 2/2 green Wolf creature token onto the battlefield.");
|
||||
"PN puts a 2/2 green Wolf creature token onto the battlefield.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue