mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
CardFactory: fixed RollPlanarDice with unorthodox way
This commit is contained in:
@@ -365,15 +365,16 @@ public class CardFactory {
|
||||
triggerSB.append("that planar deck and turn it face up");
|
||||
|
||||
StringBuilder saSB = new StringBuilder();
|
||||
saSB.append("AB$ RollPlanarDice | Cost$ PlanarDiceCostX | References$ PlanarDiceCostX | SorcerySpeed$ True | AnyPlayer$ True | ActivationZone$ Command | ");
|
||||
saSB.append("AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | AnyPlayer$ True | ActivationZone$ Command | ");
|
||||
saSB.append("SpellDescription$ Roll the planar dice. X is equal to the amount of times the planar die has been rolled this turn.");
|
||||
|
||||
card.setSVar("RolledWalk", "DB$ Planeswalk | Cost$ 0");
|
||||
Trigger planesWalkTrigger = TriggerHandler.parseTrigger(triggerSB.toString(), card, true);
|
||||
card.addTrigger(planesWalkTrigger);
|
||||
|
||||
card.setSVar("PlanarDiceCostX", "Count$RolledThisTurn");
|
||||
SpellAbility planarRoll = AbilityFactory.getAbility(saSB.toString(), card);
|
||||
planarRoll.setSVar("X", "Count$RolledThisTurn");
|
||||
|
||||
card.addSpellAbility(planarRoll);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user