Implement [LTC] Subjugate the Hobbits

This commit is contained in:
xenohedron 2023-07-27 22:25:38 -04:00
parent c4f13be87f
commit be246ef733
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,45 @@
package mage.cards.s;
import mage.abilities.effects.common.continuous.GainControlAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.Duration;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CommanderPredicate;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import java.util.UUID;
/**
* @author xenohedron
*/
public final class SubjugateTheHobbits extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("each noncommander creature with mana value 3 or less");
static {
filter.add(Predicates.not(CommanderPredicate.instance));
filter.add(new ManaValuePredicate(ComparisonType.OR_LESS, 3));
}
public SubjugateTheHobbits(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{5}{U}{U}");
// Gain control of each noncommander creature with mana value 3 or less.
this.getSpellAbility().addEffect(new GainControlAllEffect(Duration.Custom, filter)
.setText("gain control of each noncommander creature with mana value 3 or less"));
}
private SubjugateTheHobbits(final SubjugateTheHobbits card) {
super(card);
}
@Override
public SubjugateTheHobbits copy() {
return new SubjugateTheHobbits(this);
}
}

View file

@ -231,6 +231,7 @@ public final class TalesOfMiddleEarthCommander extends ExpansionSet {
cards.add(new SetCardInfo("Smoldering Marsh", 332, Rarity.RARE, mage.cards.s.SmolderingMarsh.class));
cards.add(new SetCardInfo("Sol Ring", 284, Rarity.UNCOMMON, mage.cards.s.SolRing.class));
cards.add(new SetCardInfo("Song of Earendil", 69, Rarity.RARE, mage.cards.s.SongOfEarendil.class));
cards.add(new SetCardInfo("Subjugate the Hobbits", 24, Rarity.RARE, mage.cards.s.SubjugateTheHobbits.class));
cards.add(new SetCardInfo("Sulfur Falls", 333, Rarity.RARE, mage.cards.s.SulfurFalls.class));
cards.add(new SetCardInfo("Sulfurous Springs", 334, Rarity.RARE, mage.cards.s.SulfurousSprings.class));
cards.add(new SetCardInfo("Sunken Hollow", 335, Rarity.RARE, mage.cards.s.SunkenHollow.class));