removed Object[] data
parent
4b445d2aa3
commit
6e3812d2ba
|
@ -12,15 +12,13 @@ public class Deep_Slumber_Titan {
|
||||||
public static final MagicWhenDamageIsDealtTrigger T1 = new MagicWhenDamageIsDealtTrigger() {
|
public static final MagicWhenDamageIsDealtTrigger T1 = new MagicWhenDamageIsDealtTrigger() {
|
||||||
@Override
|
@Override
|
||||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
||||||
return (damage.getTarget() == permanent &&
|
return (damage.getTarget() == permanent && permanent.isTapped()) ?
|
||||||
permanent.isTapped()) ?
|
new MagicEvent(
|
||||||
new MagicEvent(
|
permanent,
|
||||||
permanent,
|
permanent.getController(),
|
||||||
permanent.getController(),
|
this,
|
||||||
new Object[]{permanent},
|
"Untap " + permanent + ".") :
|
||||||
this,
|
MagicEvent.NONE;
|
||||||
"Untap " + permanent + ".") :
|
|
||||||
MagicEvent.NONE;
|
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void executeEvent(
|
public void executeEvent(
|
||||||
|
@ -28,7 +26,7 @@ public class Deep_Slumber_Titan {
|
||||||
final MagicEvent event,
|
final MagicEvent event,
|
||||||
final Object data[],
|
final Object data[],
|
||||||
final Object[] choiceResults) {
|
final Object[] choiceResults) {
|
||||||
game.doAction(new MagicUntapAction((MagicPermanent)data[0]));
|
game.doAction(new MagicUntapAction(event.getPermanent()));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue