mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
* Defiant Salvager - fixed incorrect filter
This commit is contained in:
parent
9227c4615f
commit
f4530d66a9
1 changed files with 4 additions and 3 deletions
|
|
@ -38,7 +38,8 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
|
|
@ -48,10 +49,10 @@ import mage.target.common.TargetControlledPermanent;
|
|||
*/
|
||||
public class DefiantSalvager extends CardImpl {
|
||||
|
||||
private final static FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("an artifact or creature");
|
||||
private final static FilterControlledPermanent filter = new FilterControlledPermanent("an artifact or creature");
|
||||
|
||||
static {
|
||||
filter.add(new CardTypePredicate(CardType.ARTIFACT));
|
||||
filter.add(Predicates.or(new CardTypePredicate(CardType.ARTIFACT), new CardTypePredicate(CardType.CREATURE)));
|
||||
}
|
||||
|
||||
public DefiantSalvager(UUID ownerId, CardSetInfo setInfo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue