[filters] Replaced Subtype condition with Predicate

This commit is contained in:
North 2012-07-11 23:59:41 +03:00
parent 91d320eed2
commit 2198cae333
345 changed files with 874 additions and 1032 deletions

View file

@ -41,8 +41,8 @@ import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.filter.Filter;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.permanent.token.GoblinToken;
import mage.target.common.TargetControlledCreaturePermanent;
import mage.target.common.TargetCreatureOrPlayer;
@ -56,8 +56,7 @@ public class SiegeGangCommander extends CardImpl<SiegeGangCommander> {
private final static FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("a Goblin");
static {
filter.getSubtype().add("Goblin");
filter.setScopeSubtype(Filter.ComparisonScope.Any);
filter.add(new SubtypePredicate("Goblin"));
}
public SiegeGangCommander(UUID ownerId) {