CardFactoryUtil: fixed Manifest

This commit is contained in:
Hanmac
2016-12-17 11:04:05 +00:00
parent 256d0bd455
commit 2b055b84fb
2 changed files with 5 additions and 1 deletions

View File

@@ -501,6 +501,8 @@ public class Card extends GameEntity implements Comparable<Card> {
// Add manifest demorph static ability for creatures // Add manifest demorph static ability for creatures
if (isCreature && !cost.isNoCost()) { if (isCreature && !cost.isNoCost()) {
c.addSpellAbility(CardFactoryUtil.abilityManifestFaceUp(c, cost)); c.addSpellAbility(CardFactoryUtil.abilityManifestFaceUp(c, cost));
c.updateStateForView();
} }
return c; return c;

View File

@@ -164,12 +164,14 @@ public class CardFactoryUtil {
String costDesc = manaCost.toString(); String costDesc = manaCost.toString();
String ab = "ST$ SetState | Cost$ + " + costDesc + " + | CostDesc$ Unmanifest " + costDesc // Cost need to be set later
String ab = "ST$ SetState | Cost$ 0 | CostDesc$ Unmanifest " + costDesc
+ " | ManifestUp$ True" + " | ManifestUp$ True"
+ " | ConditionDefined$ Self | ConditionPresent$ Card.faceDown+manifested" + " | ConditionDefined$ Self | ConditionPresent$ Card.faceDown+manifested"
+ " | Mode$ TurnFace | SpellDescription$ (Turn this face up any time for its mana cost.)"; + " | Mode$ TurnFace | SpellDescription$ (Turn this face up any time for its mana cost.)";
final SpellAbility manifestUp = AbilityFactory.getAbility(ab, sourceCard); final SpellAbility manifestUp = AbilityFactory.getAbility(ab, sourceCard);
manifestUp.setPayCosts(new Cost(manaCost, true));
final StringBuilder sbStack = new StringBuilder(); final StringBuilder sbStack = new StringBuilder();
sbStack.append(sourceCard.getName()).append(" - turn this card face up."); sbStack.append(sourceCard.getName()).append(" - turn this card face up.");