mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed SubtypePredicate - treated case where object has Changeling
This commit is contained in:
parent
dcfd5ece0c
commit
c59087e827
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
||||||
package mage.filter.predicate.mageobject;
|
package mage.filter.predicate.mageobject;
|
||||||
|
|
||||||
import mage.MageObject;
|
import mage.MageObject;
|
||||||
|
import mage.abilities.keyword.ChangelingAbility;
|
||||||
import mage.filter.predicate.Predicate;
|
import mage.filter.predicate.Predicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
|
||||||
|
@ -45,6 +46,10 @@ public class SubtypePredicate implements Predicate<MageObject> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(MageObject input, Game game) {
|
public boolean apply(MageObject input, Game game) {
|
||||||
|
if (input.getAbilities().contains(ChangelingAbility.getInstance())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return input.getSubtype().contains(subtype);
|
return input.getSubtype().contains(subtype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue