processTargetPermanent instead of processTarget

master
melvin 2012-10-10 22:27:24 +08:00
parent b43f2da07a
commit 8b724f9c2c
1 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import magic.model.MagicGame;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.action.MagicDealDamageAction;
import magic.model.action.MagicTargetAction;
import magic.model.action.MagicPermanentAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.event.MagicSpellCardEvent;
@ -29,9 +29,8 @@ public class Wrack_with_Madness {
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
event.processTarget(game,choiceResults,0,new MagicTargetAction() {
public void doAction(final MagicTarget target) {
final MagicPermanent creature = (MagicPermanent)target;
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
final MagicDamage damage = new MagicDamage(
creature,
creature,