Merge pull request #11431 from Susucre/lci-mana-tracking

[LCI] Implement Thousand Moons Smithy // Barracks of the Thousand and Brass's Tunnel-Grinder // Tecutlan, the Searing Rift
This commit is contained in:
Oleg Agafonov 2023-11-25 17:13:54 +03:00 committed by GitHub
commit 99cbddb8b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 639 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.game.permanent.token;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessSourceEffect;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.Predicates;
/**
* @author Susucr
*/
public final class GnomeSoldierStarStarToken extends TokenImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent();
static {
filter.add(Predicates.or(
CardType.ARTIFACT.getPredicate(),
CardType.CREATURE.getPredicate()
));
}
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
public GnomeSoldierStarStarToken() {
super("Gnome Soldier Token", "white Gnome Soldier artifact creature token with "
+ "\"this creature's power and toughness are each equal to the number of artifacts and/or creatures you control.\"");
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add(SubType.GNOME);
subtype.add(SubType.SOLDIER);
color.setWhite(true);
this.addAbility(new SimpleStaticAbility(new SetBasePowerToughnessSourceEffect(
xValue
).setText("this creature's power and toughness are each equal to the number of artifacts and/or creatures you control")));
}
protected GnomeSoldierStarStarToken(final GnomeSoldierStarStarToken token) {
super(token);
}
public GnomeSoldierStarStarToken copy() {
return new GnomeSoldierStarStarToken(this);
}
}