[LTC] Implement Taunt from the Rampart (#10717)

This commit is contained in:
Susucre 2023-08-01 05:52:15 +02:00 committed by GitHub
parent 67407a8780
commit 378fd2743e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 1 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.t;
import mage.abilities.effects.common.combat.CantBlockAllEffect;
import mage.abilities.effects.common.combat.GoadAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.filter.common.FilterOpponentsCreaturePermanent;
import java.util.UUID;
/**
* @author Susucr
*/
public final class TauntFromTheRampart extends CardImpl {
private static final FilterOpponentsCreaturePermanent filter = new FilterOpponentsCreaturePermanent("");
public TauntFromTheRampart(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}{W}");
// Goad all creatures your opponents control. Until your next turn, those creatures can't block.
this.getSpellAbility().addEffect(new GoadAllEffect(filter)
.setText("Goad all creatures your opponents control.")
);
this.getSpellAbility().addEffect(new CantBlockAllEffect(filter, Duration.UntilYourNextTurn)
.setText("Until your next turn, those creatures can't block. "
+ "<i>(Until your next turn, those creatures attack each combat if able "
+ "and attack a player other than you if able.)</i>")
);
}
private TauntFromTheRampart(final TauntFromTheRampart card) {
super(card);
}
@Override
public TauntFromTheRampart copy() {
return new TauntFromTheRampart(this);
}
}

View file

@ -252,6 +252,7 @@ public final class TalesOfMiddleEarthCommander extends ExpansionSet {
cards.add(new SetCardInfo("Sylvan Offering", 261, Rarity.RARE, mage.cards.s.SylvanOffering.class));
cards.add(new SetCardInfo("Talisman of Conviction", 285, Rarity.UNCOMMON, mage.cards.t.TalismanOfConviction.class));
cards.add(new SetCardInfo("Talisman of Progress", 286, Rarity.UNCOMMON, mage.cards.t.TalismanOfProgress.class));
cards.add(new SetCardInfo("Taunt from the Rampart", 71, Rarity.RARE, mage.cards.t.TauntFromTheRampart.class));
cards.add(new SetCardInfo("Terramorphic Expanse", 337, Rarity.COMMON, mage.cards.t.TerramorphicExpanse.class));
cards.add(new SetCardInfo("The Balrog of Moria", 46, Rarity.RARE, mage.cards.t.TheBalrogOfMoria.class));
cards.add(new SetCardInfo("The Gaffer", 12, Rarity.RARE, mage.cards.t.TheGaffer.class));

View file

@ -20,7 +20,7 @@ public class CantBlockAllEffect extends RestrictionEffect {
this.filter = filter;
}
public CantBlockAllEffect(final CantBlockAllEffect effect) {
protected CantBlockAllEffect(final CantBlockAllEffect effect) {
super(effect);
this.filter = effect.filter;
}