mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Remove an extra incorrect check in ArtifactSourcePredicate
This commit is contained in:
parent
593df43758
commit
973c2a08e3
1 changed files with 1 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
||||||
|
|
||||||
package mage.filter.predicate.ability;
|
package mage.filter.predicate.ability;
|
||||||
|
|
||||||
import mage.MageObject;
|
|
||||||
import mage.abilities.Ability;
|
|
||||||
import mage.constants.AbilityType;
|
|
||||||
import mage.filter.predicate.Predicate;
|
import mage.filter.predicate.Predicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.stack.StackAbility;
|
import mage.game.stack.StackAbility;
|
||||||
|
@ -22,7 +19,7 @@ public class ArtifactSourcePredicate implements Predicate<StackObject> {
|
||||||
public boolean apply(StackObject input, Game game) {
|
public boolean apply(StackObject input, Game game) {
|
||||||
if (input instanceof StackAbility) {
|
if (input instanceof StackAbility) {
|
||||||
StackAbility ability = (StackAbility) input;
|
StackAbility ability = (StackAbility) input;
|
||||||
return ability.getSourceObject(game).isArtifact() && ability.getAbilityType() == AbilityType.ACTIVATED;
|
return ability.getSourceObject(game).isArtifact();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue