Skip to content

Commit

Permalink
miss changes from foretold fix in #11646
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDi85 committed Jan 20, 2024
1 parent 0fc7e1a commit 8e395f9
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@

package mage.abilities.condition.common;

import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.SpellAbility;
import mage.abilities.condition.Condition;
import mage.game.Game;

/**
*
* @author LevelX2
*/

public enum SourceIsSpellCondition implements Condition {
public enum SourceIsSpellCondition implements Condition {

instance;
instance;

@Override
public boolean apply(Game game, Ability source) {
MageObject object = game.getObject(source);
return object != null && !object.isLand(game);
return source instanceof SpellAbility;
}
}

0 comments on commit 8e395f9

Please sign in to comment.