mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Improved Stack description of DestroyAll effects.
This commit is contained in:
@@ -18,19 +18,12 @@ public class DestroyAllEffect extends SpellAbilityEffect {
|
|||||||
@Override
|
@Override
|
||||||
protected String getStackDescription(SpellAbility sa) {
|
protected String getStackDescription(SpellAbility sa) {
|
||||||
|
|
||||||
final StringBuilder sb = new StringBuilder();
|
if (sa.hasParam("SpellDescription")) {
|
||||||
final boolean noRegen = sa.hasParam("NoRegen");
|
return sa.getParam("SpellDescription");
|
||||||
|
|
||||||
List<Card> tgtCards;
|
|
||||||
|
|
||||||
final Target tgt = sa.getTarget();
|
|
||||||
if (tgt != null) {
|
|
||||||
tgtCards = tgt.getTargetCards();
|
|
||||||
} else {
|
|
||||||
tgtCards = new ArrayList<Card>();
|
|
||||||
tgtCards.add(sa.getSourceCard());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final StringBuilder sb = new StringBuilder();
|
||||||
|
final boolean noRegen = sa.hasParam("NoRegen");
|
||||||
sb.append(sa.getSourceCard().getName()).append(" - Destroy permanents.");
|
sb.append(sa.getSourceCard().getName()).append(" - Destroy permanents.");
|
||||||
|
|
||||||
if (noRegen) {
|
if (noRegen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user