-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
miss changes from foretold fix in #11646
- Loading branch information
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
11 changes: 4 additions & 7 deletions
11
Mage/src/main/java/mage/abilities/condition/common/SourceIsSpellCondition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |