mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
improve sb following ConditionDescription clause
This commit is contained in:
@@ -101,13 +101,13 @@ public abstract class SpellAbilityEffect {
|
|||||||
makeSpellDescription(sa, sb, stackDesc);
|
makeSpellDescription(sa, sb, stackDesc);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final String conditionDesc = sa.getParam("ConditionDescription");
|
final String condDesc = sa.getParam("ConditionDescription");
|
||||||
final String afterDesc = sa.getParam("AfterDescription");
|
final String afterDesc = sa.getParam("AfterDescription");
|
||||||
final String baseDesc = CardTranslation.translateSingleDescriptionText(this.getStackDescription(sa), sa.getHostCard().getName());
|
final String baseDesc = CardTranslation.translateSingleDescriptionText(this.getStackDescription(sa), sa.getHostCard().getName());
|
||||||
if (conditionDesc != null) {
|
if (condDesc != null) {
|
||||||
sb.append(conditionDesc).append(" ");
|
sb.append(condDesc).append(" ");
|
||||||
}
|
}
|
||||||
sb.append(baseDesc);
|
sb.append(condDesc != null && condDesc.endsWith(",") ? StringUtils.uncapitalize(baseDesc) : baseDesc);
|
||||||
if (afterDesc != null) {
|
if (afterDesc != null) {
|
||||||
sb.append(" ").append(afterDesc);
|
sb.append(" ").append(afterDesc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user