Using unique/special new event type for taking special actions and special mana payment(fixes #6753).

This commit is contained in:
LevelX2 2020-09-17 17:01:59 +02:00
parent 08d9e8cfa0
commit 75c4ff7d8e
9 changed files with 45 additions and 6 deletions

View file

@ -14,6 +14,7 @@ import mage.abilities.effects.common.CreateSpecialActionEffect;
import mage.abilities.effects.common.RemoveSpecialActionEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AbilityType;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
@ -75,6 +76,7 @@ class ChannelSpecialAction extends SpecialAction {
ChannelSpecialAction() {
super();
this.abilityType = AbilityType.SPECIAL_MANA_PAYMENT;
this.addCost(new PayLifeCost(1));
this.addEffect(new BasicManaEffect(Mana.ColorlessMana(1)));
}

View file

@ -56,7 +56,8 @@ public class DampingEngine extends CardImpl {
public DampingEngine(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
// A player who controls more permanents than each other player can't play lands or cast artifact, creature, or enchantment spells. That player may sacrifice a permanent for that player to ignore this effect until end of turn.
// A player who controls more permanents than each other player can't play lands or cast artifact, creature, or enchantment spells.
// That player may sacrifice a permanent for that player to ignore this effect until end of turn.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DampingEngineEffect()));
this.addAbility(new DampingEngineSpecialAction());