fixed Gigadrowse not moved to graveyard after casting

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

View File

@ -6,6 +6,7 @@ import magic.model.MagicPermanent;
import magic.model.MagicManaCost;
import magic.model.action.MagicPermanentAction;
import magic.model.action.MagicTapAction;
import magic.model.action.MagicMoveCardAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.choice.MagicKickerChoice;
import magic.model.event.MagicEvent;
@ -24,6 +25,7 @@ public class Gigadrowse {
cardOnStack.getController(),
new MagicKickerChoice(MagicTargetChoice.NEG_TARGET_PERMANENT, MagicManaCost.BLUE, true, true),
new MagicTapTargetPicker(true,false),
new Object[]{cardOnStack},
this,
"Tap target permanent$.");
}
@ -33,6 +35,7 @@ public class Gigadrowse {
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0]));
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent permanent) {
game.doAction(new MagicTapAction(permanent,true));