simplify code

master
melvin 2012-09-09 11:00:09 +08:00
parent eac2b63a8b
commit ba3b4a2e89
1 changed files with 3 additions and 4 deletions

View File

@ -30,7 +30,7 @@ public class Douse_in_Gloom {
new Object[]{cardOnStack},
this,
card + " deals 2 damage to target creature$ and " +
player + " gains 2 life.");
player + " gains 2 life.");
}
@Override
public void executeEvent(
@ -38,11 +38,10 @@ public class Douse_in_Gloom {
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,2,false);
final MagicDamage damage=new MagicDamage(event.getSource(),target,2,false);
game.doAction(new MagicDealDamageAction(damage));
}
});