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