updated ability reduction text

This commit is contained in:
Evan Kranzler 2020-04-13 18:17:35 -04:00
parent 79f49c9997
commit 7073de31bb
5 changed files with 19 additions and 29 deletions

View file

@ -58,7 +58,7 @@ public final class BiomancersFamiliar extends CardImpl {
class BiomancersFamiliarCostReductionEffect extends CostModificationEffectImpl {
private static final String effectText = "Activated abilities of creatures you control cost {2} less to activate. " +
"This effect can't reduce the amount of mana an ability costs to activate to less than one mana";
"This effect can't reduce the mana in that cost to less than one mana";
BiomancersFamiliarCostReductionEffect() {
super(Duration.Custom, Outcome.Benefit, CostModificationType.REDUCE_COST);
@ -155,4 +155,4 @@ class BiomancersFamiliarReplacementEffect extends ReplacementEffectImpl {
discard();
return false;
}
}
}

View file

@ -46,7 +46,7 @@ public final class Heartstone extends CardImpl {
class HeartstoneEffect extends CostModificationEffectImpl {
private static final String effectText = "Activated abilities of creatures cost {1} less to activate. This effect can't reduce the amount of mana an ability costs to activate to less than one mana.";
private static final String effectText = "Activated abilities of creatures cost {1} less to activate. This effect can't reduce the mana in that cost to less than one mana.";
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
public HeartstoneEffect() {

View file

@ -1,11 +1,5 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mage.cards.p;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.ActivatedAbility;
@ -15,13 +9,7 @@ import mage.abilities.effects.common.cost.CostModificationEffectImpl;
import mage.abilities.keyword.EnchantAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AbilityType;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.CostModificationType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
@ -29,14 +17,15 @@ import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.util.CardUtil;
import java.util.UUID;
/**
*
* @author nick.myers
*/
public final class PowerArtifact extends CardImpl {
public PowerArtifact(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{U}{U}");
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}{U}");
this.subtype.add(SubType.AURA);
// Enchant artifact
@ -51,7 +40,7 @@ public final class PowerArtifact extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PowerArtifactCostModificationEffect()));
}
public PowerArtifact(final PowerArtifact card) {
private PowerArtifact(final PowerArtifact card) {
super(card);
}
@ -65,11 +54,12 @@ class PowerArtifactCostModificationEffect extends CostModificationEffectImpl {
PowerArtifactCostModificationEffect() {
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.REDUCE_COST);
staticText = "The activation cost of target artifact is reduced by {2}. If this would reduce target artifact's activation cost below {1}, target artifact's activation cost becomes {1}. Power artifact has no effect on artifacts that have no activation cost or whose activation cost is {0}.";
staticText = "Enchanted artifact's activated abilities cost {2} less to activate. " +
"This effect can't reduce the amount of mana an ability costs to activate to less than one mana.";
}
PowerArtifactCostModificationEffect(PowerArtifactCostModificationEffect effect) {
private PowerArtifactCostModificationEffect(PowerArtifactCostModificationEffect effect) {
super(effect);
}

View file

@ -43,7 +43,7 @@ public final class TrainingGrounds extends CardImpl {
class TrainingGroundsEffect extends CostModificationEffectImpl {
private static final String effectText = "Activated abilities of creatures you control cost {2} less to activate. " +
"This effect can't reduce the amount of mana an ability costs to activate to less than one mana";
"This effect can't reduce the mana in that cost to less than one mana";
TrainingGroundsEffect() {
super(Duration.Custom, Outcome.Benefit, CostModificationType.REDUCE_COST);

View file

@ -42,7 +42,7 @@ public final class ZirdaTheDawnwaker extends CardImpl {
this.addAbility(new CompanionAbility(ZirdaTheDawnwakerCompanionCondition.instance));
// Abilities you activate that aren't mana abilities cost {2} less to activate. This effect can't reduce the mana in that cost to less than one mana.
this.addAbility(new SimpleStaticAbility(new TrainingGroundsEffect()));
this.addAbility(new SimpleStaticAbility(new ZirdaTheDawnwakerEffect()));
// {1}, {T}: Target creature can't block this turn.
Ability ability = new SimpleActivatedAbility(
@ -84,15 +84,15 @@ enum ZirdaTheDawnwakerCompanionCondition implements CompanionCondition {
}
}
class TrainingGroundsEffect extends CostModificationEffectImpl {
class ZirdaTheDawnwakerEffect extends CostModificationEffectImpl {
TrainingGroundsEffect() {
ZirdaTheDawnwakerEffect() {
super(Duration.Custom, Outcome.Benefit, CostModificationType.REDUCE_COST);
staticText = "Abilities you activate that aren't mana abilities cost {2} less to activate. " +
"This effect can't reduce the mana in that cost to less than one mana.";
}
private TrainingGroundsEffect(final TrainingGroundsEffect effect) {
private ZirdaTheDawnwakerEffect(final ZirdaTheDawnwakerEffect effect) {
super(effect);
}
@ -103,7 +103,7 @@ class TrainingGroundsEffect extends CostModificationEffectImpl {
if (reduceMax > 0 && mana.count() == mana.getGeneric()) {
reduceMax--;
}
reduceMax=Math.min(reduceMax,2);
reduceMax = Math.min(reduceMax, 2);
if (reduceMax <= 0) {
return true;
}
@ -119,7 +119,7 @@ class TrainingGroundsEffect extends CostModificationEffectImpl {
}
@Override
public TrainingGroundsEffect copy() {
return new TrainingGroundsEffect(this);
public ZirdaTheDawnwakerEffect copy() {
return new ZirdaTheDawnwakerEffect(this);
}
}