mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Little fix to Twinning Glass.
This commit is contained in:
parent
3efb5c3e2a
commit
d46919563f
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue