removed Object[]

master
melvin 2012-08-30 20:46:40 +08:00
parent 68fd4ecca8
commit 44e5e6850d
2 changed files with 11 additions and 2 deletions

View File

@ -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()));
} }
}); });
} }

View File

@ -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,