removed Object[] data

master
melvin 2012-08-31 11:33:13 +08:00
parent f0caa8bc9a
commit 25307792c8
1 changed files with 5 additions and 4 deletions

View File

@ -23,12 +23,11 @@ public class Custody_Battle {
enchanted,
player,
new MagicMayChoice(
"You may sacrifice a land. If you don't, " +
player + " may sacrifice a land. If you don't, " +
opponent + " gains control of " + enchanted + ".",
MagicTargetChoice.SACRIFICE_LAND),
new Object[]{opponent},
this,
"You may$ sacrifice a land$. If you don't, " +
player + " may$ sacrifice a land$. If you don't, " +
opponent + " gains control of " + enchanted + ".") :
MagicEvent.NONE;
}
@ -45,7 +44,9 @@ public class Custody_Battle {
}
});
} else {
game.doAction(new MagicGainControlAction((MagicPlayer)data[0],(MagicPermanent)event.getSource()));
game.doAction(new MagicGainControlAction(
event.getPlayer().getOpponent(),
event.getPermanent()));
}
}
};