mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Merge branch 'tokenizerfix' into 'master'
Tokenizer CARDNAME substitution fix See merge request core-developers/forge!3350
This commit is contained in:
@@ -156,9 +156,9 @@ public abstract class SpellAbilityEffect {
|
||||
if ("}".equals(t)) { isPlainText = true; continue; }
|
||||
|
||||
if (isPlainText) {
|
||||
if(t.startsWith("NICKNAME")) {
|
||||
if (t.startsWith("NICKNAME")) {
|
||||
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()));
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user