mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Fixes to rule text
This commit is contained in:
parent
d4a2701424
commit
e708c2b74a
4 changed files with 28 additions and 27 deletions
|
|
@ -29,6 +29,7 @@ package mage.sets.magic2012;
|
|||
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Duration;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -47,8 +48,6 @@ import mage.sets.Sets;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
import static mage.Constants.Duration;
|
||||
|
||||
/**
|
||||
* @author nantuko
|
||||
*/
|
||||
|
|
@ -83,8 +82,8 @@ public class AdaptiveAutomaton extends CardImpl<AdaptiveAutomaton> {
|
|||
class AdaptiveAutomatonEffect extends OneShotEffect<AdaptiveAutomatonEffect> {
|
||||
|
||||
public AdaptiveAutomatonEffect() {
|
||||
super(Constants.Outcome.DrawCard);
|
||||
staticText = "As Adaptive Automaton enters the battlefield, choose a creature type";
|
||||
super(Constants.Outcome.BoostCreature);
|
||||
staticText = "As {this} enters the battlefield, choose a creature type";
|
||||
}
|
||||
|
||||
public AdaptiveAutomatonEffect(final AdaptiveAutomatonEffect effect) {
|
||||
|
|
@ -116,7 +115,7 @@ class AdaptiveAutomatonEffect extends OneShotEffect<AdaptiveAutomatonEffect> {
|
|||
class AdaptiveAutomatonAddSubtypeEffect extends ContinuousEffectImpl<AdaptiveAutomatonAddSubtypeEffect> {
|
||||
public AdaptiveAutomatonAddSubtypeEffect() {
|
||||
super(Duration.WhileOnBattlefield, Constants.Layer.TypeChangingEffects_4, Constants.SubLayer.NA, Constants.Outcome.Benefit);
|
||||
staticText = "Adaptive Automaton is the chosen type in addition to its other types";
|
||||
staticText = "{this} is the chosen type in addition to its other types";
|
||||
}
|
||||
|
||||
public AdaptiveAutomatonAddSubtypeEffect(final AdaptiveAutomatonAddSubtypeEffect effect) {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import mage.Constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public class SkipEnchantedUntapEffect extends ReplacementEffectImpl<SkipEnchante
|
|||
|
||||
public SkipEnchantedUntapEffect() {
|
||||
super(Constants.Duration.WhileOnBattlefield, Constants.Outcome.Detriment);
|
||||
staticText = "Enchanted permanent doesn't untap during its controller's untap step.";
|
||||
staticText = "Enchanted permanent doesn't untap during its controller's untap step";
|
||||
}
|
||||
|
||||
public SkipEnchantedUntapEffect(final SkipEnchantedUntapEffect effect) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import mage.Constants.Zone;
|
||||
|
|
@ -34,30 +33,34 @@ import mage.abilities.StaticAbility;
|
|||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
* @author North
|
||||
*/
|
||||
public class EnchantAbility extends StaticAbility<EnchantAbility> {
|
||||
|
||||
protected String targetName;
|
||||
protected String targetName;
|
||||
|
||||
public EnchantAbility(String targetName) {
|
||||
super(Zone.BATTLEFIELD, null);
|
||||
this.targetName = targetName;
|
||||
}
|
||||
public EnchantAbility(String targetName) {
|
||||
super(Zone.BATTLEFIELD, null);
|
||||
this.targetName = targetName;
|
||||
}
|
||||
|
||||
public EnchantAbility(final EnchantAbility ability) {
|
||||
super(ability);
|
||||
this.targetName = ability.targetName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnchantAbility copy() {
|
||||
return new EnchantAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Enchant " + targetName;
|
||||
}
|
||||
public EnchantAbility(final EnchantAbility ability) {
|
||||
super(ability);
|
||||
this.targetName = ability.targetName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnchantAbility copy() {
|
||||
return new EnchantAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Enchant ").append(targetName);
|
||||
if (!this.getEffects().isEmpty()) {
|
||||
sb.append(". ").append(super.getRule());
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue