- Little fix to Twinning Glass.

This commit is contained in:
Jeff 2017-07-12 15:54:42 -05:00
parent 3efb5c3e2a
commit d46919563f

View file

@ -41,6 +41,8 @@ import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.filter.predicate.mageobject.NamePredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
@ -95,6 +97,7 @@ class TwinningGlassEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
FilterCard filterCard = new FilterCard();
filterCard.add(Predicates.not(new CardTypePredicate(CardType.LAND)));
Permanent twinningGlass = game.getPermanent(source.getSourceId());
Player controller = game.getPlayer(source.getControllerId());
SpellsCastWatcher watcher = (SpellsCastWatcher) game.getState().getWatchers().get(SpellsCastWatcher.class.getSimpleName());