[LCI] Implement Kellan, Daring Traveler (#11332)

Also adds Map Token, a new Token with implicit rules:
> {1}, {T}, sacrifice {this}: target creature you control explores. Activate only as a sorcery.
This commit is contained in:
Susucre 2023-10-24 19:36:16 +02:00 committed by GitHub
parent 7ec64639bd
commit d440cf5b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 184 additions and 0 deletions

View file

@ -55,6 +55,7 @@ public enum SubType {
FORTIFICATION("Fortification", SubTypeSet.ArtifactType),
GOLD("Gold", SubTypeSet.ArtifactType),
INCUBATOR("Incubator", SubTypeSet.ArtifactType),
MAP("Map", SubTypeSet.ArtifactType),
POWERSTONE("Powerstone", SubTypeSet.ArtifactType),
TREASURE("Treasure", SubTypeSet.ArtifactType),
VEHICLE("Vehicle", SubTypeSet.ArtifactType),

View file

@ -0,0 +1,41 @@
package mage.game.permanent.token;
import mage.abilities.Ability;
import mage.abilities.common.ActivateAsSorceryActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.keyword.ExploreTargetEffect;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetControlledCreaturePermanent;
/**
* @author Susucr
*/
public final class MapToken extends TokenImpl {
public MapToken() {
super("Map Token", "Map token");
cardType.add(CardType.ARTIFACT);
subtype.add(SubType.MAP);
Ability ability = new ActivateAsSorceryActivatedAbility(
new ExploreTargetEffect(false)
.setText("target creature you control explores"),
new GenericManaCost(1)
);
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);
}
protected MapToken(final MapToken token) {
super(token);
}
public MapToken copy() {
return new MapToken(this);
}
}