mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
SpellPermanent: reset StackDescription for something with "Text"
This commit is contained in:
@@ -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"))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user