mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- If SA has an Announce Requirement is available, append the Announce variable to the Stack Description
This commit is contained in:
@@ -9,6 +9,7 @@ import java.util.StringTokenizer;
|
|||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import forge.Card;
|
import forge.Card;
|
||||||
|
import forge.card.cardfactory.CardFactoryUtil;
|
||||||
import forge.card.spellability.AbilitySub;
|
import forge.card.spellability.AbilitySub;
|
||||||
import forge.card.spellability.SpellAbility;
|
import forge.card.spellability.SpellAbility;
|
||||||
import forge.card.spellability.Target;
|
import forge.card.spellability.Target;
|
||||||
@@ -80,6 +81,13 @@ import forge.game.player.Player;
|
|||||||
if (abSub != null) {
|
if (abSub != null) {
|
||||||
sb.append(abSub.getStackDescription());
|
sb.append(abSub.getStackDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sa.hasParam("Announce")) {
|
||||||
|
String svar = sa.getParam("Announce");
|
||||||
|
int amount = CardFactoryUtil.xCount(sa.getSourceCard(), sa.getSVar(svar));
|
||||||
|
sb.append(String.format(" (%s=%d)", svar, amount));
|
||||||
|
}
|
||||||
|
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user