forked from External/mage
fix Spider-Punk
This commit is contained in:
parent
8ac800b08b
commit
a03e971090
1 changed files with 4 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ import mage.cards.CardImpl;
|
|||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.EntersTheBattlefieldEvent;
|
||||
|
|
@ -34,7 +35,7 @@ import java.util.UUID;
|
|||
*/
|
||||
public final class SpiderPunk extends CardImpl {
|
||||
|
||||
static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.SPIDER, "Spiders you control");
|
||||
static final FilterPermanent filter = new FilterPermanent(SubType.SPIDER, "Spiders you control");
|
||||
|
||||
public SpiderPunk(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
|
@ -125,7 +126,7 @@ class SpiderPunkRiotETBEffect extends ReplacementEffectImpl {
|
|||
return creature != null
|
||||
&& creature.getId() != source.getSourceId()
|
||||
&& creature.isControlledBy(source.getControllerId())
|
||||
&& creature.isCreature(game)
|
||||
&& SpiderPunk.filter.match(creature, source.getControllerId(), source, game)
|
||||
&& !(creature instanceof PermanentToken);
|
||||
}
|
||||
|
||||
|
|
@ -154,4 +155,4 @@ class SpiderPunkRiotETBEffect extends ReplacementEffectImpl {
|
|||
public SpiderPunkRiotETBEffect copy() {
|
||||
return new SpiderPunkRiotETBEffect(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue