From 616a6e5dddea33f373f3fa18f9fc4037a4e485b3 Mon Sep 17 00:00:00 2001 From: TRT <> Date: Thu, 3 Feb 2022 13:56:59 +0100 Subject: [PATCH] AffectedAmount -> Relative --- forge-game/src/main/java/forge/game/cost/CostAdjustment.java | 2 +- forge-gui/res/cardsfolder/d/damping_sphere.txt | 2 +- forge-gui/res/cardsfolder/f/fireball.txt | 2 +- forge-gui/res/cardsfolder/h/hum_of_the_radix.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/forge-game/src/main/java/forge/game/cost/CostAdjustment.java b/forge-game/src/main/java/forge/game/cost/CostAdjustment.java index 3db9346677f..2132afde0aa 100644 --- a/forge-game/src/main/java/forge/game/cost/CostAdjustment.java +++ b/forge-game/src/main/java/forge/game/cost/CostAdjustment.java @@ -137,7 +137,7 @@ public class CostAdjustment { if (StringUtils.isNumeric(amount)) { count = Integer.parseInt(amount); } else { - if (st.hasParam("AffectedAmount")) { + if (st.hasParam("Relative")) { count = AbilityUtils.calculateAmount(hostCard, st.hasSVar(amount) ? st.getSVar(amount) : amount, sa); } else { count = AbilityUtils.calculateAmount(hostCard, amount, st); diff --git a/forge-gui/res/cardsfolder/d/damping_sphere.txt b/forge-gui/res/cardsfolder/d/damping_sphere.txt index 92bdb8cb095..ed54717ed8b 100644 --- a/forge-gui/res/cardsfolder/d/damping_sphere.txt +++ b/forge-gui/res/cardsfolder/d/damping_sphere.txt @@ -3,7 +3,7 @@ ManaCost:2 Types:Artifact R:Event$ ProduceMana | ActiveZones$ Battlefield | ValidCard$ Land | ValidAbility$ Activated.hasTapCost | ManaAmount$ GE2 | ReplaceWith$ ProduceC | Description$ If a land is tapped for two or more mana, it produces {C} instead of any other type and amount. SVar:ProduceC:DB$ ReplaceMana | ReplaceMana$ C -S:Mode$ RaiseCost | Activator$ Player | Type$ Spell | Amount$ X | AffectedAmount$ True | Description$ Each spell a player casts costs {1} more to cast for each other spell that player has cast this turn. +S:Mode$ RaiseCost | Activator$ Player | Type$ Spell | Amount$ X | Relative$ True | Description$ Each spell a player casts costs {1} more to cast for each other spell that player has cast this turn. SVar:X:Count$ThisTurnCast_Card.YouCtrl SVar:NonStackingEffect:True Oracle:If a land is tapped for two or more mana, it produces {C} instead of any other type and amount.\nEach spell a player casts costs {1} more to cast for each other spell that player has cast this turn. diff --git a/forge-gui/res/cardsfolder/f/fireball.txt b/forge-gui/res/cardsfolder/f/fireball.txt index 63608220564..5555661df22 100644 --- a/forge-gui/res/cardsfolder/f/fireball.txt +++ b/forge-gui/res/cardsfolder/f/fireball.txt @@ -1,7 +1,7 @@ Name:Fireball ManaCost:X R Types:Sorcery -S:Mode$ RaiseCost | ValidCard$ Card.Self | Type$ Spell | Amount$ IncreaseCost | AffectedAmount$ True | EffectZone$ All | Description$ This spell costs {1} more to cast for each target beyond the first. +S:Mode$ RaiseCost | ValidCard$ Card.Self | Type$ Spell | Amount$ IncreaseCost | Relative$ True | EffectZone$ All | Description$ This spell costs {1} more to cast for each target beyond the first. A:SP$ DealDamage | Cost$ X R | ValidTgts$ Creature,Player,Planeswalker | TgtPrompt$ Select any target | NumDmg$ X | TargetMin$ 0 | TargetMax$ MaxTargets | DivideEvenly$ RoundedDown | SpellDescription$ CARDNAME deals X damage divided evenly, rounded down, among any number of targets. SVar:X:Count$xPaid SVar:MaxTargets:SVar$Maxplayer/Plus.Maxcreatureorplaneswalker diff --git a/forge-gui/res/cardsfolder/h/hum_of_the_radix.txt b/forge-gui/res/cardsfolder/h/hum_of_the_radix.txt index 84e4056e7f8..a87439ee68e 100644 --- a/forge-gui/res/cardsfolder/h/hum_of_the_radix.txt +++ b/forge-gui/res/cardsfolder/h/hum_of_the_radix.txt @@ -1,7 +1,7 @@ Name:Hum of the Radix ManaCost:2 G G Types:Enchantment -S:Mode$ RaiseCost | ValidCard$ Artifact | Activator$ Player | Type$ Spell | Amount$ X | AffectedAmount$ True | Description$ Each artifact spell costs {1} more to cast for each artifact its controller controls. +S:Mode$ RaiseCost | ValidCard$ Artifact | Activator$ Player | Type$ Spell | Amount$ X | Relative$ True | Description$ Each artifact spell costs {1} more to cast for each artifact its controller controls. SVar:X:Count$Valid Artifact.YouCtrl AI:RemoveDeck:Random Oracle:Each artifact spell costs {1} more to cast for each artifact its controller controls.