remove Object[] data

master
melvin 2012-09-16 15:10:51 +08:00
parent f585351e02
commit f763e459cf
1 changed files with 2 additions and 6 deletions

View File

@ -14,11 +14,8 @@ public class Mind_Spring {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
final int amount=payedCost.getX();
final MagicPlayer player=cardOnStack.getController();
return new MagicEvent(
cardOnStack.getCard(),
player,
new Object[]{cardOnStack,amount},
cardOnStack,
this,
"Draw "+amount+" cards.");
}
@ -28,8 +25,7 @@ public class Mind_Spring {
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0]));
game.doAction(new MagicDrawAction(event.getPlayer(),(Integer)data[1]));
game.doAction(new MagicDrawAction(event.getPlayer(),event.getCardOnStack().getX()));
}
};
}