Merge pull request #5221 from Dilnu/Artifact

Remove an extra incorrect check in ArtifactSourcePredicate
This commit is contained in:
Oleg Agafonov 2018-08-15 07:46:50 +04:00 committed by GitHub
commit 5f8936f016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,6 @@
package mage.filter.predicate.ability;
import mage.MageObject;
import mage.abilities.Ability;
import mage.constants.AbilityType;
import mage.filter.predicate.Predicate;
import mage.game.Game;
import mage.game.stack.StackAbility;
@ -22,7 +19,7 @@ public class ArtifactSourcePredicate implements Predicate<StackObject> {
public boolean apply(StackObject input, Game game) {
if (input instanceof StackAbility) {
StackAbility ability = (StackAbility) input;
return ability.getSourceObject(game).isArtifact() && ability.getAbilityType() == AbilityType.ACTIVATED;
return ability.getSourceObject(game).isArtifact();
}
return false;
}