[DFT] Implement Unswerving Sloth

This commit is contained in:
theelk801 2025-01-26 20:30:06 -05:00
parent ad1dba9198
commit 6db188ea25
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
package mage.cards.u;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksWhileSaddledTriggeredAbility;
import mage.abilities.effects.common.UntapAllEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.IndestructibleAbility;
import mage.abilities.keyword.SaddleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class UnswervingSloth extends CardImpl {
public UnswervingSloth(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}{W}");
this.subtype.add(SubType.SLOTH);
this.subtype.add(SubType.MOUNT);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// Whenever this creature attacks while saddled, it gains indestructible until end of turn. Untap all creatures you control.
Ability ability = new AttacksWhileSaddledTriggeredAbility(new GainAbilitySourceEffect(
IndestructibleAbility.getInstance(), Duration.EndOfTurn
).setText("it gains indestructible until end of turn"));
ability.addEffect(new UntapAllEffect(StaticFilters.FILTER_CONTROLLED_CREATURES));
this.addAbility(ability);
// Saddle 4
this.addAbility(new SaddleAbility(4));
}
private UnswervingSloth(final UnswervingSloth card) {
super(card);
}
@Override
public UnswervingSloth copy() {
return new UnswervingSloth(this);
}
}

View file

@ -103,6 +103,7 @@ public final class Aetherdrift extends ExpansionSet {
cards.add(new SetCardInfo("Thopter Fabricator", 68, Rarity.RARE, mage.cards.t.ThopterFabricator.class));
cards.add(new SetCardInfo("Thornwood Falls", 266, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class));
cards.add(new SetCardInfo("Tranquil Cove", 267, Rarity.COMMON, mage.cards.t.TranquilCove.class));
cards.add(new SetCardInfo("Unswerving Sloth", 34, Rarity.UNCOMMON, mage.cards.u.UnswervingSloth.class));
cards.add(new SetCardInfo("Veloheart Bike", 184, Rarity.COMMON, mage.cards.v.VeloheartBike.class));
cards.add(new SetCardInfo("Venomsac Lagac", 185, Rarity.COMMON, mage.cards.v.VenomsacLagac.class));
cards.add(new SetCardInfo("Wastewood Verge", 268, Rarity.RARE, mage.cards.w.WastewoodVerge.class));