mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Tokenizer CARDNAME substitution fix
This commit is contained in:
@@ -158,7 +158,7 @@ public abstract class SpellAbilityEffect {
|
|||||||
if (isPlainText) {
|
if (isPlainText) {
|
||||||
if(t.startsWith("NICKNAME")) {
|
if(t.startsWith("NICKNAME")) {
|
||||||
sb.append(TextUtil.fastReplace(t,"NICKNAME", sa.getHostCard().getName().split(",")[0]));
|
sb.append(TextUtil.fastReplace(t,"NICKNAME", sa.getHostCard().getName().split(",")[0]));
|
||||||
} else {
|
} else if(t.startsWith("CARDNAME")) {
|
||||||
sb.append(TextUtil.fastReplace(t, "CARDNAME", sa.getHostCard().getName()));
|
sb.append(TextUtil.fastReplace(t, "CARDNAME", sa.getHostCard().getName()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user