mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[BLB] Implement Vren, the Relentless (#12615)
This commit is contained in:
parent
da368e9abf
commit
831313bcb9
3 changed files with 171 additions and 0 deletions
|
|
@ -0,0 +1,49 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
|
||||
/**
|
||||
* @author PurpleCrowbar
|
||||
*/
|
||||
public final class VrenRatToken extends TokenImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("other Rat you control");
|
||||
|
||||
static {
|
||||
filter.add(SubType.RAT.getPredicate());
|
||||
filter.add(AnotherPredicate.instance);
|
||||
}
|
||||
|
||||
public VrenRatToken() {
|
||||
super("Rat Token", "1/1 black Rat creature tokens with \"This creature gets +1/+1 for each other Rat you control\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add(SubType.RAT);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
|
||||
new BoostSourceEffect(new PermanentsOnBattlefieldCount(filter),
|
||||
new PermanentsOnBattlefieldCount(filter), Duration.WhileOnBattlefield
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
private VrenRatToken(final VrenRatToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VrenRatToken copy() {
|
||||
return new VrenRatToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue