mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[AFR] Implemented Icingdeath, Frost Tyrant
This commit is contained in:
parent
210aebc376
commit
2e254d524d
5 changed files with 106 additions and 2 deletions
|
|
@ -112,6 +112,9 @@ public class CreateTokenEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
private void setText() {
|
||||
if (token.getDescription().contains(", a legendary")) {
|
||||
staticText = "create " + token.getDescription();
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("create ");
|
||||
if (amount.toString().equals("1")) {
|
||||
sb.append("a ");
|
||||
|
|
|
|||
|
|
@ -0,0 +1,53 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksAttachedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.TapTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.permanent.DefendingPlayerControlsPredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class IcingdeathFrostTongueToken extends TokenImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterCreaturePermanent("creature defending player controls");
|
||||
|
||||
static {
|
||||
filter.add(DefendingPlayerControlsPredicate.instance);
|
||||
}
|
||||
|
||||
public IcingdeathFrostTongueToken() {
|
||||
super("Icingdeath, Frost Tongue", "Icingdeath, Frost Tongue, a legendary white " +
|
||||
"Equipment artifact token with \"Equipped creature gets +2/+0\", " +
|
||||
"\"Whenever equipped creature attacks, tap target creature " +
|
||||
"defending player controls,\" and equip {2}");
|
||||
supertype.add(SuperType.LEGENDARY);
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
color.setWhite(true);
|
||||
subtype.add(SubType.EQUIPMENT);
|
||||
this.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(2, 0)));
|
||||
Ability ability = new AttacksAttachedTriggeredAbility(new TapTargetEffect(), false);
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
this.addAbility(new EquipAbility(2));
|
||||
}
|
||||
|
||||
private IcingdeathFrostTongueToken(final IcingdeathFrostTongueToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IcingdeathFrostTongueToken copy() {
|
||||
return new IcingdeathFrostTongueToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue