mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +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;
|
||||
}
|
||||
|
||||
int value = 0;
|
||||
if (StringUtils.isNumeric(amount)) {
|
||||
value = Integer.parseInt(amount);
|
||||
} else {
|
||||
if ("Min3".equals(amount)) {
|
||||
int value = Integer.parseInt(amount);
|
||||
|
||||
if (staticAbility.hasParam("RaiseTo")) {
|
||||
int cmc = manaCost.getConvertedManaCost();
|
||||
if (cmc < 3) {
|
||||
value = 3 - cmc;
|
||||
}
|
||||
if (cmc < value) {
|
||||
value = Integer.parseInt(amount) - cmc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Name:Trinisphere
|
||||
ManaCost:3
|
||||
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
|
||||
AI:RemoveDeck:Random
|
||||
SVar:NonStackingEffect:True
|
||||
|
||||
Reference in New Issue
Block a user