removed Object[]
parent
68fd4ecca8
commit
44e5e6850d
|
@ -21,7 +21,6 @@ public class Wall_of_Reverence {
|
||||||
player,
|
player,
|
||||||
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
|
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
|
||||||
MagicPowerTargetPicker.getInstance(),
|
MagicPowerTargetPicker.getInstance(),
|
||||||
new Object[]{player},
|
|
||||||
this,
|
this,
|
||||||
player + " gains life equal to the power of target creature$ he or she controls."):
|
player + " gains life equal to the power of target creature$ he or she controls."):
|
||||||
MagicEvent.NONE;
|
MagicEvent.NONE;
|
||||||
|
@ -34,7 +33,7 @@ public class Wall_of_Reverence {
|
||||||
final Object[] choiceResults) {
|
final Object[] choiceResults) {
|
||||||
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||||
public void doAction(final MagicPermanent creature) {
|
public void doAction(final MagicPermanent creature) {
|
||||||
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[0],creature.getPower()));
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),creature.getPower()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,6 +84,16 @@ public class MagicEvent implements MagicCopyable {
|
||||||
this.description=description;
|
this.description=description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MagicEvent(
|
||||||
|
final MagicSource source,
|
||||||
|
final MagicPlayer player,
|
||||||
|
final MagicChoice choice,
|
||||||
|
final MagicTargetPicker targetPicker,
|
||||||
|
final MagicEventAction action,
|
||||||
|
final String description) {
|
||||||
|
this(source,player,choice,targetPicker,NO_DATA,action,description);
|
||||||
|
}
|
||||||
|
|
||||||
public MagicEvent(
|
public MagicEvent(
|
||||||
final MagicSource source,
|
final MagicSource source,
|
||||||
final MagicPlayer player,
|
final MagicPlayer player,
|
||||||
|
|
Loading…
Reference in New Issue