mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fix filter in Mana Vapors
This commit is contained in:
parent
4748d723ae
commit
e6b22b4bcd
1 changed files with 4 additions and 2 deletions
|
@ -36,6 +36,7 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.common.FilterLandPermanent;
|
||||
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.TargetPlayer;
|
||||
|
@ -51,7 +52,6 @@ public class ManaVapors extends CardImpl {
|
|||
|
||||
public ManaVapors(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}");
|
||||
|
||||
|
||||
// Lands target player controls don't untap during his or her next untap step.
|
||||
getSpellAbility().addTarget(new TargetPlayer());
|
||||
|
@ -88,7 +88,9 @@ class ManaVaporsEffect extends OneShotEffect {
|
|||
Player player = game.getPlayer(source.getFirstTarget());
|
||||
|
||||
if (player != null) {
|
||||
ContinuousEffect effect = new DontUntapInOpponentsNextUntapStepAllEffect(new FilterLandPermanent());
|
||||
FilterLandPermanent filter = new FilterLandPermanent();
|
||||
filter.add(new ControllerIdPredicate(player.getId()));
|
||||
ContinuousEffect effect = new DontUntapInOpponentsNextUntapStepAllEffect(filter);
|
||||
effect.setTargetPointer(new FixedTarget(player.getId()));
|
||||
game.addEffect(effect, source);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue