replace filterTargets with filterPermanents

master
melvin 2012-10-07 22:30:35 +08:00
parent 37f4623ae9
commit f87d4ab5c3
1 changed files with 3 additions and 4 deletions

View File

@ -27,10 +27,9 @@ public class Wrap_in_Vigor {
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
final Collection<MagicTarget> targets =
game.filterTargets(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicTarget target : targets) {
final MagicPermanent creature=(MagicPermanent)target;
final Collection<MagicPermanent> targets =
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicPermanent creature : targets) {
game.doAction(new MagicRegenerateAction(creature));
}
}