simplify code

master
melvin 2012-09-09 11:03:10 +08:00
parent 7864c51232
commit 1b7dfee41f
2 changed files with 3 additions and 6 deletions

View File

@ -38,11 +38,10 @@ public class Essence_Drain {
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
final MagicCardOnStack cardOnStack=(MagicCardOnStack)data[0];
game.doAction(new MagicMoveCardAction(cardOnStack));
game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0]));
event.processTarget(game,choiceResults,0,new MagicTargetAction() {
public void doAction(final MagicTarget target) {
final MagicDamage damage=new MagicDamage(cardOnStack.getCard(),target,3,false);
final MagicDamage damage=new MagicDamage(event.getSource(),target,3,false);
game.doAction(new MagicDealDamageAction(damage));
}
});

View File

@ -1,7 +1,5 @@
package magic.card;
import magic.model.event.MagicSpellCardEvent;
public class Lightning_Helix {
public static final MagicSpellCardEvent S = Essence_Drain.S;
public static final Object S = Essence_Drain.S;
}