mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Merge branch 'master' into 'master'
RaiseTo param for Trinisphere-likes See merge request core-developers/forge!3280
This commit is contained in:
@@ -337,15 +337,12 @@ public class CostAdjustment {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int value = 0;
|
int value = Integer.parseInt(amount);
|
||||||
if (StringUtils.isNumeric(amount)) {
|
|
||||||
value = Integer.parseInt(amount);
|
if (staticAbility.hasParam("RaiseTo")) {
|
||||||
} else {
|
|
||||||
if ("Min3".equals(amount)) {
|
|
||||||
int cmc = manaCost.getConvertedManaCost();
|
int cmc = manaCost.getConvertedManaCost();
|
||||||
if (cmc < 3) {
|
if (cmc < value) {
|
||||||
value = 3 - cmc;
|
value = Integer.parseInt(amount) - cmc;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Name:Trinisphere
|
Name:Trinisphere
|
||||||
ManaCost:3
|
ManaCost:3
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
S:Mode$ SetCost | ValidCard$ Card | Type$ Spell | Amount$ Min3 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, each spell that would cost less than three mana to cast costs three mana to cast.
|
S:Mode$ SetCost | ValidCard$ Card | Type$ Spell | Amount$ 3 | RaiseTo$ True | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, each spell that would cost less than three mana to cast costs three mana to cast.
|
||||||
SVar:X:Count$Valid Card.Self+untapped
|
SVar:X:Count$Valid Card.Self+untapped
|
||||||
AI:RemoveDeck:Random
|
AI:RemoveDeck:Random
|
||||||
SVar:NonStackingEffect:True
|
SVar:NonStackingEffect:True
|
||||||
|
|||||||
Reference in New Issue
Block a user