SpellPermanent: reset StackDescription for something with "Text"

This commit is contained in:
Hanmac
2016-11-09 21:06:16 +00:00
parent 982d2f9673
commit 75df5aeb48

View File

@@ -50,6 +50,8 @@ public class SpellPermanent extends SpellApiBased {
super(sourceCard.isCreature() ? ApiType.PermanentCreature : ApiType.PermanentNoncreature, sourceCard, super(sourceCard.isCreature() ? ApiType.PermanentCreature : ApiType.PermanentNoncreature, sourceCard,
new Cost(sourceCard.getManaCost(), false), null, Maps.<String, String>newHashMap()); new Cost(sourceCard.getManaCost(), false), null, Maps.<String, String>newHashMap());
// reset StackDescription for something with Text
this.setStackDescription("");
this.setDescription(this.getStackDescription()); this.setDescription(this.getStackDescription());
if (this.getPayCosts().getTotalMana().countX() > 0 && StringUtils.isNotBlank(getHostCard().getSVar("X"))) { if (this.getPayCosts().getTotalMana().countX() > 0 && StringUtils.isNotBlank(getHostCard().getSVar("X"))) {