mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
CardFactoryUtil: fixed Manifest
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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.");
|
||||||
|
|||||||
Reference in New Issue
Block a user