mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-21 07:16:52 +01:00
- Fixed generated text for Volrath's Shapeshifter.
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35733 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
parent
9d1d0ec786
commit
7ab4abde50
@ -17,6 +17,8 @@
|
||||
*/
|
||||
package forge.game.staticability;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import forge.card.CardStateName;
|
||||
import forge.card.MagicColor;
|
||||
import forge.game.CardTraitBase;
|
||||
@ -35,16 +37,13 @@ import forge.game.spellability.SpellAbility;
|
||||
import forge.game.zone.Zone;
|
||||
import forge.game.zone.ZoneType;
|
||||
import forge.util.Expressions;
|
||||
import forge.util.TextUtil;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import forge.util.TextUtil;
|
||||
|
||||
/**
|
||||
* The Class StaticAbility.
|
||||
*/
|
||||
@ -189,7 +188,7 @@ public class StaticAbility extends CardTraitBase implements Comparable<StaticAbi
|
||||
|
||||
if (desc.contains("ORIGINALTEXTONLY:")) {
|
||||
// Only display the description if the text of the card is not changed via GainTextOf.
|
||||
desc = TextUtil.fastReplace(desc, "ORIGINALTEXTONLY", "");
|
||||
desc = TextUtil.fastReplace(desc, "ORIGINALTEXTONLY:", "");
|
||||
|
||||
boolean hasOrigText = this.hostCard.getStates().contains(CardStateName.OriginalText);
|
||||
if (hasOrigText) {
|
||||
@ -199,7 +198,7 @@ public class StaticAbility extends CardTraitBase implements Comparable<StaticAbi
|
||||
if (origName.equals(curName)) {
|
||||
return desc;
|
||||
} else {
|
||||
return "^ Text changed (" + origName + ") ^";
|
||||
return TextUtil.concatNoSpace("^ Text changed (", origName, ") ^");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user