replace filterTargets with filterPermanents

master
melvin 2012-10-07 22:31:10 +08:00
parent 2ae2103274
commit 92e61eeee1
1 changed files with 5 additions and 4 deletions

View File

@ -39,13 +39,14 @@ public class Victory_s_Herald {
final MagicEvent event, final MagicEvent event,
final Object[] choiceResults) { final Object[] choiceResults) {
final Collection<MagicTarget> targets = game.filterTargets( final Collection<MagicPermanent> targets = game.filterPermanents(
event.getPlayer(), event.getPlayer(),
MagicTargetFilter.TARGET_ATTACKING_CREATURE); MagicTargetFilter.TARGET_ATTACKING_CREATURE);
for (final MagicTarget target : targets) { for (final MagicPermanent target : targets) {
game.doAction(new MagicSetAbilityAction( game.doAction(new MagicSetAbilityAction(
(MagicPermanent)target, target,
VICTORYS_HERALD_FLAGS)); VICTORYS_HERALD_FLAGS
));
} }
} }
}; };