- Improved Stack description of DestroyAll effects.

This commit is contained in:
Sloth
2013-06-19 12:11:12 +00:00
parent 9856588fa8
commit 9525581631

View File

@@ -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) {