mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.abilities.keyword.ChangelingAbility;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
|
||||
|
@ -45,6 +46,10 @@ public class SubtypePredicate implements Predicate<MageObject> {
|
|||
|
||||
@Override
|
||||
public boolean apply(MageObject input, Game game) {
|
||||
if (input.getAbilities().contains(ChangelingAbility.getInstance())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return input.getSubtype().contains(subtype);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue