mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Code cleanup
This commit is contained in:
parent
44b84bfbbc
commit
85e90e8edf
9 changed files with 11 additions and 11 deletions
|
@ -98,7 +98,7 @@ class AccursedWitchSpellsCostReductionEffect extends CostModificationEffectImpl
|
||||||
|
|
||||||
AccursedWitchSpellsCostReductionEffect() {
|
AccursedWitchSpellsCostReductionEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Detriment, CostModificationType.REDUCE_COST);
|
super(Duration.WhileOnBattlefield, Outcome.Detriment, CostModificationType.REDUCE_COST);
|
||||||
this.staticText = "Spells your opponents cast that target {this} cost {1} less to cast.";
|
this.staticText = "Spells your opponents cast that target {this} cost {1} less to cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
private AccursedWitchSpellsCostReductionEffect(AccursedWitchSpellsCostReductionEffect effect) {
|
private AccursedWitchSpellsCostReductionEffect(AccursedWitchSpellsCostReductionEffect effect) {
|
||||||
|
|
|
@ -50,7 +50,7 @@ class AetherStormReplacementEffect extends ContinuousRuleModifyingEffectImpl {
|
||||||
|
|
||||||
public AetherStormReplacementEffect() {
|
public AetherStormReplacementEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
||||||
staticText = "Creature spells can't be cast.";
|
staticText = "Creature spells can't be cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
private AetherStormReplacementEffect(final AetherStormReplacementEffect effect) {
|
private AetherStormReplacementEffect(final AetherStormReplacementEffect effect) {
|
||||||
|
|
|
@ -98,7 +98,7 @@ class CloudKeyCostModificationEffect extends CostModificationEffectImpl {
|
||||||
|
|
||||||
public CloudKeyCostModificationEffect() {
|
public CloudKeyCostModificationEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.REDUCE_COST);
|
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.REDUCE_COST);
|
||||||
this.staticText = "Spells you cast of the chosen type cost {1} less to cast.";
|
this.staticText = "Spells you cast of the chosen type cost {1} less to cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
public CloudKeyCostModificationEffect(final CloudKeyCostModificationEffect effect) {
|
public CloudKeyCostModificationEffect(final CloudKeyCostModificationEffect effect) {
|
||||||
|
|
|
@ -48,7 +48,7 @@ class GaddockTeegReplacementEffect4 extends ContinuousRuleModifyingEffectImpl {
|
||||||
|
|
||||||
public GaddockTeegReplacementEffect4() {
|
public GaddockTeegReplacementEffect4() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
||||||
staticText = "Noncreature spells with converted mana cost 4 or greater can't be cast. Noncreature spells with {X} in their mana costs can't be cast.";
|
staticText = "Noncreature spells with converted mana cost 4 or greater can't be cast. Noncreature spells with {X} in their mana costs can't be cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
public GaddockTeegReplacementEffect4(final GaddockTeegReplacementEffect4 effect) {
|
public GaddockTeegReplacementEffect4(final GaddockTeegReplacementEffect4 effect) {
|
||||||
|
@ -85,7 +85,7 @@ class GaddockTeegReplacementEffectX extends ContinuousRuleModifyingEffectImpl {
|
||||||
|
|
||||||
public GaddockTeegReplacementEffectX() {
|
public GaddockTeegReplacementEffectX() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
||||||
staticText = "Noncreature spells with {X} in their mana costs can't be cast.";
|
staticText = "Noncreature spells with {X} in their mana costs can't be cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
public GaddockTeegReplacementEffectX(final GaddockTeegReplacementEffectX effect) {
|
public GaddockTeegReplacementEffectX(final GaddockTeegReplacementEffectX effect) {
|
||||||
|
|
|
@ -106,7 +106,7 @@ class InfectiousCurseCostReductionEffect extends CostModificationEffectImpl {
|
||||||
|
|
||||||
public InfectiousCurseCostReductionEffect() {
|
public InfectiousCurseCostReductionEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.REDUCE_COST);
|
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.REDUCE_COST);
|
||||||
this.staticText = "Spells you cast that target enchanted player cost {1} less to cast.";
|
this.staticText = "Spells you cast that target enchanted player cost {1} less to cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected InfectiousCurseCostReductionEffect(InfectiousCurseCostReductionEffect effect) {
|
protected InfectiousCurseCostReductionEffect(InfectiousCurseCostReductionEffect effect) {
|
||||||
|
|
|
@ -51,7 +51,7 @@ class MeddlingMageReplacementEffect extends ContinuousRuleModifyingEffectImpl {
|
||||||
|
|
||||||
public MeddlingMageReplacementEffect() {
|
public MeddlingMageReplacementEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
||||||
staticText = "Spells with the chosen name can't be cast.";
|
staticText = "Spells with the chosen name can't be cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
public MeddlingMageReplacementEffect(final MeddlingMageReplacementEffect effect) {
|
public MeddlingMageReplacementEffect(final MeddlingMageReplacementEffect effect) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ class SenatorLottDodSpellsTargetingCreatureCostReductionEffect extends CostModif
|
||||||
|
|
||||||
public SenatorLottDodSpellsTargetingCreatureCostReductionEffect() {
|
public SenatorLottDodSpellsTargetingCreatureCostReductionEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.INCREASE_COST);
|
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.INCREASE_COST);
|
||||||
this.staticText = "Spell your opponents cast that target a creature you control cost {1} more to cast.";
|
this.staticText = "Spell your opponents cast that target a creature you control cost {1} more to cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected SenatorLottDodSpellsTargetingCreatureCostReductionEffect(SenatorLottDodSpellsTargetingCreatureCostReductionEffect effect) {
|
protected SenatorLottDodSpellsTargetingCreatureCostReductionEffect(SenatorLottDodSpellsTargetingCreatureCostReductionEffect effect) {
|
||||||
|
@ -96,7 +96,7 @@ class SenatorLottDodSpellsTargetingYouCostReductionEffect extends CostModificati
|
||||||
|
|
||||||
public SenatorLottDodSpellsTargetingYouCostReductionEffect() {
|
public SenatorLottDodSpellsTargetingYouCostReductionEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.INCREASE_COST);
|
super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.INCREASE_COST);
|
||||||
this.staticText = "Spells your opponents cast that target you cost {2} more to cast.";
|
this.staticText = "Spells your opponents cast that target you cost {2} more to cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected SenatorLottDodSpellsTargetingYouCostReductionEffect(SenatorLottDodSpellsTargetingYouCostReductionEffect effect) {
|
protected SenatorLottDodSpellsTargetingYouCostReductionEffect(SenatorLottDodSpellsTargetingYouCostReductionEffect effect) {
|
||||||
|
|
|
@ -89,7 +89,7 @@ class WillKenrithCostReductionEffect extends OneShotEffect {
|
||||||
|
|
||||||
WillKenrithCostReductionEffect() {
|
WillKenrithCostReductionEffect() {
|
||||||
super(Outcome.Benefit);
|
super(Outcome.Benefit);
|
||||||
this.staticText = "Until your next turn, instant, sorcery, and planeswalker spells that player casts cost {2} less to cast.";
|
this.staticText = "Until your next turn, instant, sorcery, and planeswalker spells that player casts cost {2} less to cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
WillKenrithCostReductionEffect(final WillKenrithCostReductionEffect effect) {
|
WillKenrithCostReductionEffect(final WillKenrithCostReductionEffect effect) {
|
||||||
|
|
|
@ -74,7 +74,7 @@ class FeedingGroundsEffect extends CostModificationEffectImpl {
|
||||||
new ColorPredicate(ObjectColor.GREEN)));
|
new ColorPredicate(ObjectColor.GREEN)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String rule = "Red spells cost {1} less to cast. Green spells cost {1} less to cast.";
|
private static final String rule = "Red spells cost {1} less to cast. Green spells cost {1} less to cast";
|
||||||
private int amount = 1;
|
private int amount = 1;
|
||||||
|
|
||||||
public FeedingGroundsEffect() {
|
public FeedingGroundsEffect() {
|
||||||
|
|
Loading…
Reference in a new issue