From f87d4ab5c39342f26f342b5532fd852ceb4287ae Mon Sep 17 00:00:00 2001 From: melvin Date: Sun, 7 Oct 2012 22:30:35 +0800 Subject: [PATCH] replace filterTargets with filterPermanents --- src/magic/card/Wrap_in_Vigor.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/magic/card/Wrap_in_Vigor.java b/src/magic/card/Wrap_in_Vigor.java index 4641198494..5fadaf6316 100644 --- a/src/magic/card/Wrap_in_Vigor.java +++ b/src/magic/card/Wrap_in_Vigor.java @@ -27,10 +27,9 @@ public class Wrap_in_Vigor { final MagicGame game, final MagicEvent event, final Object[] choiceResults) { - final Collection targets = - game.filterTargets(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL); - for (final MagicTarget target : targets) { - final MagicPermanent creature=(MagicPermanent)target; + final Collection targets = + game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL); + for (final MagicPermanent creature : targets) { game.doAction(new MagicRegenerateAction(creature)); } }