mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
fixed Brooding Saurian only getting back creatures (fixes #5033)
This commit is contained in:
parent
bb92d04ff4
commit
9a9c1a8694
1 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.cards.b;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
@ -12,7 +11,6 @@ import mage.cards.CardImpl;
|
|||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.other.OwnerIdPredicate;
|
||||
import mage.filter.predicate.permanent.TokenPredicate;
|
||||
|
@ -27,8 +25,8 @@ import mage.players.Player;
|
|||
public final class BroodingSaurian extends CardImpl {
|
||||
|
||||
public BroodingSaurian(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}{G}");
|
||||
this.subtype.add(SubType.LIZARD);
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}");
|
||||
this.subtype.add(SubType.LIZARD);
|
||||
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
@ -49,7 +47,8 @@ public final class BroodingSaurian extends CardImpl {
|
|||
|
||||
class BroodingSaurianControlEffect extends ContinuousEffectImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
private static final FilterPermanent filter = new FilterPermanent();
|
||||
|
||||
static {
|
||||
filter.add(Predicates.not(new TokenPredicate()));
|
||||
}
|
||||
|
@ -77,7 +76,7 @@ class BroodingSaurianControlEffect extends ContinuousEffectImpl {
|
|||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
FilterPermanent playerFilter = filter.copy();
|
||||
playerFilter.add(new OwnerIdPredicate(playerId));
|
||||
for (Permanent permanent :game.getBattlefield().getActivePermanents(playerFilter, playerId, game)) {
|
||||
for (Permanent permanent : game.getBattlefield().getActivePermanents(playerFilter, playerId, game)) {
|
||||
affectedObjectList.add(new MageObjectReference(permanent, game));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue