mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
fixed Krenko, Mob Boss only counting goblin creatures
This commit is contained in:
parent
f93b8fc1cf
commit
b8cc48c2ca
1 changed files with 12 additions and 16 deletions
|
|
@ -1,10 +1,9 @@
|
||||||
|
|
||||||
package mage.cards.k;
|
package mage.cards.k;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.costs.common.TapSourceCost;
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
|
import mage.abilities.dynamicvalue.DynamicValue;
|
||||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
|
@ -12,22 +11,19 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
|
||||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
|
||||||
import mage.game.permanent.token.GoblinToken;
|
import mage.game.permanent.token.GoblinToken;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author North
|
* @author North
|
||||||
*/
|
*/
|
||||||
public final class KrenkoMobBoss extends CardImpl {
|
public final class KrenkoMobBoss extends CardImpl {
|
||||||
|
|
||||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("the number of Goblins you control");
|
private static final FilterControlledPermanent filter
|
||||||
|
= new FilterControlledPermanent(SubType.GOBLIN, "the number of Goblins you control");
|
||||||
static {
|
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
|
||||||
filter.add(new SubtypePredicate(SubType.GOBLIN));
|
|
||||||
}
|
|
||||||
|
|
||||||
public KrenkoMobBoss(UUID ownerId, CardSetInfo setInfo) {
|
public KrenkoMobBoss(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}{R}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}{R}");
|
||||||
|
|
@ -39,12 +35,12 @@ public final class KrenkoMobBoss extends CardImpl {
|
||||||
this.toughness = new MageInt(3);
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
// {tap}: create X 1/1 red Goblin creature tokens, where X is the number of Goblins you control.
|
// {tap}: create X 1/1 red Goblin creature tokens, where X is the number of Goblins you control.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
this.addAbility(new SimpleActivatedAbility(
|
||||||
new CreateTokenEffect(new GoblinToken(), new PermanentsOnBattlefieldCount(filter)),
|
new CreateTokenEffect(new GoblinToken(), xValue), new TapSourceCost()
|
||||||
new TapSourceCost()));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public KrenkoMobBoss(final KrenkoMobBoss card) {
|
private KrenkoMobBoss(final KrenkoMobBoss card) {
|
||||||
super(card);
|
super(card);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue