mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
RE: do CARDNAME after text changing effects
This commit is contained in:
@@ -193,12 +193,12 @@ public abstract class ReplacementEffect extends TriggerReplacementBase {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (this.getMapParams().containsKey("Description") && !this.isSuppressed()) {
|
if (hasParam("Description") && !this.isSuppressed()) {
|
||||||
String desc = this.getMapParams().get("Description");
|
String desc = AbilityUtils.applyDescriptionTextChangeEffects(getParam("Description"), this);
|
||||||
if (desc.contains("CARDNAME")) {
|
if (desc.contains("CARDNAME")) {
|
||||||
desc = TextUtil.fastReplace(this.getMapParams().get("Description"), "CARDNAME", getHostCard().toString());
|
desc = TextUtil.fastReplace(desc, "CARDNAME", getHostCard().toString());
|
||||||
}
|
}
|
||||||
return AbilityUtils.applyDescriptionTextChangeEffects(desc, this);
|
return desc;
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user