Fixes to rule text

This commit is contained in:
North 2011-09-02 20:34:45 +03:00
parent d4a2701424
commit e708c2b74a
4 changed files with 28 additions and 27 deletions

View file

@ -29,6 +29,7 @@ package mage.sets.magic2012;
import mage.Constants; import mage.Constants;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Duration;
import mage.Constants.Rarity; import mage.Constants.Rarity;
import mage.MageInt; import mage.MageInt;
import mage.abilities.Ability; import mage.abilities.Ability;
@ -47,8 +48,6 @@ import mage.sets.Sets;
import java.util.UUID; import java.util.UUID;
import static mage.Constants.Duration;
/** /**
* @author nantuko * @author nantuko
*/ */
@ -83,8 +82,8 @@ public class AdaptiveAutomaton extends CardImpl<AdaptiveAutomaton> {
class AdaptiveAutomatonEffect extends OneShotEffect<AdaptiveAutomatonEffect> { class AdaptiveAutomatonEffect extends OneShotEffect<AdaptiveAutomatonEffect> {
public AdaptiveAutomatonEffect() { public AdaptiveAutomatonEffect() {
super(Constants.Outcome.DrawCard); super(Constants.Outcome.BoostCreature);
staticText = "As Adaptive Automaton enters the battlefield, choose a creature type"; staticText = "As {this} enters the battlefield, choose a creature type";
} }
public AdaptiveAutomatonEffect(final AdaptiveAutomatonEffect effect) { public AdaptiveAutomatonEffect(final AdaptiveAutomatonEffect effect) {
@ -116,7 +115,7 @@ class AdaptiveAutomatonEffect extends OneShotEffect<AdaptiveAutomatonEffect> {
class AdaptiveAutomatonAddSubtypeEffect extends ContinuousEffectImpl<AdaptiveAutomatonAddSubtypeEffect> { class AdaptiveAutomatonAddSubtypeEffect extends ContinuousEffectImpl<AdaptiveAutomatonAddSubtypeEffect> {
public AdaptiveAutomatonAddSubtypeEffect() { public AdaptiveAutomatonAddSubtypeEffect() {
super(Duration.WhileOnBattlefield, Constants.Layer.TypeChangingEffects_4, Constants.SubLayer.NA, Constants.Outcome.Benefit); 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) { public AdaptiveAutomatonAddSubtypeEffect(final AdaptiveAutomatonAddSubtypeEffect effect) {

View file

@ -33,7 +33,6 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import mage.Constants.Outcome; import mage.Constants.Outcome;
import mage.abilities.Ability;
import mage.abilities.Mode; import mage.abilities.Mode;
/** /**

View file

@ -14,7 +14,7 @@ public class SkipEnchantedUntapEffect extends ReplacementEffectImpl<SkipEnchante
public SkipEnchantedUntapEffect() { public SkipEnchantedUntapEffect() {
super(Constants.Duration.WhileOnBattlefield, Constants.Outcome.Detriment); 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) { public SkipEnchantedUntapEffect(final SkipEnchantedUntapEffect effect) {

View file

@ -25,7 +25,6 @@
* authors and should not be interpreted as representing official policies, either expressed * authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com. * or implied, of BetaSteward_at_googlemail.com.
*/ */
package mage.abilities.keyword; package mage.abilities.keyword;
import mage.Constants.Zone; import mage.Constants.Zone;
@ -34,6 +33,7 @@ import mage.abilities.StaticAbility;
/** /**
* *
* @author BetaSteward_at_googlemail.com * @author BetaSteward_at_googlemail.com
* @author North
*/ */
public class EnchantAbility extends StaticAbility<EnchantAbility> { public class EnchantAbility extends StaticAbility<EnchantAbility> {
@ -56,8 +56,11 @@ public class EnchantAbility extends StaticAbility<EnchantAbility> {
@Override @Override
public String getRule() { public String getRule() {
return "Enchant " + targetName; StringBuilder sb = new StringBuilder();
sb.append("Enchant ").append(targetName);
if (!this.getEffects().isEmpty()) {
sb.append(". ").append(super.getRule());
}
return sb.toString();
} }
} }