mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
[PIP] Implement Preston Garvey, Minuteman
This commit is contained in:
parent
2d74f18a40
commit
5dcbd6d318
3 changed files with 139 additions and 4 deletions
|
|
@ -0,0 +1,44 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.constants.*;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetLandPermanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SettlementToken extends TokenImpl {
|
||||
|
||||
public SettlementToken() {
|
||||
super("Settlement", "Settlement token");
|
||||
cardType.add(CardType.ENCHANTMENT);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.AURA);
|
||||
|
||||
TargetPermanent auraTarget = new TargetLandPermanent();
|
||||
Ability ability = new EnchantAbility(auraTarget);
|
||||
ability.addTarget(auraTarget);
|
||||
ability.addEffect(new AttachEffect(Outcome.Benefit));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Enchanted land has "{T}: Add one mana of any color."
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(
|
||||
new AnyColorManaAbility(), AttachmentType.AURA, Duration.WhileOnBattlefield,
|
||||
"enchanted land has \"{T}: Add one mana of any color.\""
|
||||
)));
|
||||
}
|
||||
|
||||
private SettlementToken(final SettlementToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public SettlementToken copy() {
|
||||
return new SettlementToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue