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