permanent may be null if card has not been played
parent
2c1a01cb19
commit
aaa0c711cc
|
@ -19,12 +19,11 @@ public class Havoc_Demon {
|
|||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
final MagicGraveyardTriggerData triggerData=(MagicGraveyardTriggerData)data;
|
||||
final MagicPlayer player=permanent.getController();
|
||||
return (MagicLocationType.Play==triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{player},
|
||||
permanent.getController(),
|
||||
new Object[]{permanent.getController()},
|
||||
this,
|
||||
"All creatures get -5/-5 until end of turn."):
|
||||
null;
|
||||
|
|
|
@ -17,14 +17,13 @@ public class Keiga__the_Tide_Star {
|
|||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
final MagicGraveyardTriggerData triggerData=(MagicGraveyardTriggerData)data;
|
||||
final MagicPlayer player=permanent.getController();
|
||||
return (MagicLocationType.Play==triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
permanent.getController(),
|
||||
MagicTargetChoice.TARGET_CREATURE,
|
||||
MagicExileTargetPicker.getInstance(),
|
||||
new Object[]{player},
|
||||
new Object[]{permanent.getController()},
|
||||
this,
|
||||
"Gain control of target creature$."):
|
||||
null;
|
||||
|
|
|
@ -15,12 +15,11 @@ public class Kokusho__the_Evening_Star {
|
|||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
final MagicGraveyardTriggerData triggerData=(MagicGraveyardTriggerData)data;
|
||||
final MagicPlayer player=permanent.getController();
|
||||
return (MagicLocationType.Play==triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{player},
|
||||
permanent.getController(),
|
||||
new Object[]{permanent.getController()},
|
||||
this,
|
||||
"Your opponent loses 5 life. You gain 5 life."):
|
||||
null;
|
||||
|
|
|
@ -15,14 +15,13 @@ public class Mycoid_Shepherd {
|
|||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
|
||||
final MagicGraveyardTriggerData triggerData=(MagicGraveyardTriggerData)data;
|
||||
final MagicPlayer player=permanent.getController();
|
||||
return (MagicLocationType.Play==triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{player},
|
||||
permanent.getController(),
|
||||
new Object[]{permanent.getController()},
|
||||
this,
|
||||
player + " gain 5 life."):
|
||||
permanent.getController() + " gain 5 life."):
|
||||
null;
|
||||
}
|
||||
@Override
|
||||
|
|
|
@ -16,17 +16,15 @@ public class Tuktuk_the_Explorer {
|
|||
@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 legendary 5/5 colorless Goblin Golem artifact creature token " +
|
||||
"named Tuktuk the Returned onto the battlefield.");
|
||||
}
|
||||
return null;
|
||||
return (MagicLocationType.Play==triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
permanent.getController(),
|
||||
new Object[]{permanent.getController()},
|
||||
this,
|
||||
"You put a legendary 5/5 colorless Goblin Golem artifact creature token " +
|
||||
"named Tuktuk the Returned onto the battlefield."):
|
||||
null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -16,17 +16,15 @@ public class Wurmcoil_Engine {
|
|||
@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 null;
|
||||
return (MagicLocationType.Play==triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
permanent.getController(),
|
||||
new Object[]{permanent.getController()},
|
||||
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."):
|
||||
null;
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
|
|
Loading…
Reference in New Issue