Fixed SubtypePredicate - treated case where object has Changeling

This commit is contained in:
North 2012-07-12 19:34:37 +03:00
parent dcfd5ece0c
commit c59087e827

View file

@ -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);
}