mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
SetStateEffect.getStackDescription support Specialize
This commit is contained in:
@@ -21,15 +21,22 @@ public class SetStateEffect extends SpellAbilityEffect {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getStackDescription(final SpellAbility sa) {
|
protected String getStackDescription(final SpellAbility sa) {
|
||||||
|
final Card host = sa.getHostCard();
|
||||||
final StringBuilder sb = new StringBuilder();
|
final StringBuilder sb = new StringBuilder();
|
||||||
|
boolean specialize = sa.getParam("Mode").equals("Specialize");
|
||||||
|
|
||||||
if (sa.hasParam("Flip")) {
|
if (sa.hasParam("Flip")) {
|
||||||
sb.append("Flip ");
|
sb.append("Flip ");
|
||||||
|
} else if (specialize) { // verb will come later
|
||||||
} else {
|
} else {
|
||||||
sb.append("Transform ");
|
sb.append("Transform ");
|
||||||
}
|
}
|
||||||
|
|
||||||
sb.append(Lang.joinHomogenous(getTargetCards(sa)));
|
sb.append(Lang.joinHomogenous(getTargetCards(sa)));
|
||||||
|
if (specialize) {
|
||||||
|
sb.append(" perpetually specializes into ");
|
||||||
|
sb.append(host.hasChosenColor() ? host.getChosenColor() : "the chosen color");
|
||||||
|
}
|
||||||
sb.append(".");
|
sb.append(".");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user