processTargetPermanent instead of processTarget
parent
b43f2da07a
commit
8b724f9c2c
|
@ -5,7 +5,7 @@ import magic.model.MagicGame;
|
||||||
import magic.model.MagicPayedCost;
|
import magic.model.MagicPayedCost;
|
||||||
import magic.model.MagicPermanent;
|
import magic.model.MagicPermanent;
|
||||||
import magic.model.action.MagicDealDamageAction;
|
import magic.model.action.MagicDealDamageAction;
|
||||||
import magic.model.action.MagicTargetAction;
|
import magic.model.action.MagicPermanentAction;
|
||||||
import magic.model.choice.MagicTargetChoice;
|
import magic.model.choice.MagicTargetChoice;
|
||||||
import magic.model.event.MagicEvent;
|
import magic.model.event.MagicEvent;
|
||||||
import magic.model.event.MagicSpellCardEvent;
|
import magic.model.event.MagicSpellCardEvent;
|
||||||
|
@ -29,9 +29,8 @@ public class Wrack_with_Madness {
|
||||||
final MagicGame game,
|
final MagicGame game,
|
||||||
final MagicEvent event,
|
final MagicEvent event,
|
||||||
final Object[] choiceResults) {
|
final Object[] choiceResults) {
|
||||||
event.processTarget(game,choiceResults,0,new MagicTargetAction() {
|
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||||
public void doAction(final MagicTarget target) {
|
public void doAction(final MagicPermanent creature) {
|
||||||
final MagicPermanent creature = (MagicPermanent)target;
|
|
||||||
final MagicDamage damage = new MagicDamage(
|
final MagicDamage damage = new MagicDamage(
|
||||||
creature,
|
creature,
|
||||||
creature,
|
creature,
|
||||||
|
|
Loading…
Reference in New Issue