mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Merge branch 'neo_vs' into 'master'
NEO: Voltage Surge and Generic Kicker tweaks See merge request core-developers/forge!6156
This commit is contained in:
@@ -2007,11 +2007,11 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
sbLong.append(" (").append(inst.getReminderText()).append(")").append("\r\n");
|
sbLong.append(" (").append(inst.getReminderText()).append(")").append("\r\n");
|
||||||
}
|
}
|
||||||
} else if (keyword.startsWith("Kicker")) {
|
} else if (keyword.startsWith("Kicker")) {
|
||||||
|
final StringBuilder sbx = new StringBuilder();
|
||||||
|
final String[] n = keyword.split(":");
|
||||||
|
final Cost cost = new Cost(n[1], false);
|
||||||
if (!keyword.endsWith("Generic")) {
|
if (!keyword.endsWith("Generic")) {
|
||||||
final StringBuilder sbx = new StringBuilder();
|
|
||||||
final String[] n = keyword.split(":");
|
|
||||||
sbx.append("Kicker ");
|
sbx.append("Kicker ");
|
||||||
final Cost cost = new Cost(n[1], false);
|
|
||||||
sbx.append(cost.toSimpleString());
|
sbx.append(cost.toSimpleString());
|
||||||
if (Lists.newArrayList(n).size() > 2) {
|
if (Lists.newArrayList(n).size() > 2) {
|
||||||
sbx.append(" and/or ");
|
sbx.append(" and/or ");
|
||||||
@@ -2019,8 +2019,13 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
sbx.append(cost2.toSimpleString());
|
sbx.append(cost2.toSimpleString());
|
||||||
}
|
}
|
||||||
sbx.append(" (").append(inst.getReminderText()).append(")");
|
sbx.append(" (").append(inst.getReminderText()).append(")");
|
||||||
sbLong.append(sbx).append("\r\n");
|
} else {
|
||||||
|
sbx.append("As an additional cost to cast this spell, you may ");
|
||||||
|
String costS = StringUtils.uncapitalize(cost.toSimpleString());
|
||||||
|
sbx.append(cost.hasManaCost() ? "pay " + costS : costS);
|
||||||
|
sbx.append(".");
|
||||||
}
|
}
|
||||||
|
sbLong.append(sbx).append("\r\n");
|
||||||
} else if (keyword.startsWith("Trample:")) {
|
} else if (keyword.startsWith("Trample:")) {
|
||||||
sbLong.append("Trample over planeswalkers").append(" (").append(inst.getReminderText()).append(")").append("\r\n");
|
sbLong.append("Trample over planeswalkers").append(" (").append(inst.getReminderText()).append(")").append("\r\n");
|
||||||
} else if (keyword.startsWith("Hexproof:")) {
|
} else if (keyword.startsWith("Hexproof:")) {
|
||||||
@@ -2545,20 +2550,25 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
sbBefore.append("Multikicker ").append(cost.toSimpleString()).append(" (").append(inst.getReminderText()).append(")").append("\r\n");
|
sbBefore.append("Multikicker ").append(cost.toSimpleString()).append(" (").append(inst.getReminderText()).append(")").append("\r\n");
|
||||||
}
|
}
|
||||||
} else if (keyword.startsWith("Kicker")) {
|
} else if (keyword.startsWith("Kicker")) {
|
||||||
|
final StringBuilder sbx = new StringBuilder();
|
||||||
|
final String[] n = keyword.split(":");
|
||||||
|
final Cost cost = new Cost(n[1], false);
|
||||||
if (!keyword.endsWith("Generic")) {
|
if (!keyword.endsWith("Generic")) {
|
||||||
final StringBuilder sbx = new StringBuilder();
|
|
||||||
final String[] n = keyword.split(":");
|
|
||||||
sbx.append("Kicker ");
|
sbx.append("Kicker ");
|
||||||
final Cost cost = new Cost(n[1], false);
|
|
||||||
sbx.append(cost.toSimpleString());
|
sbx.append(cost.toSimpleString());
|
||||||
if (Lists.newArrayList(n).size() > 2) {
|
if (Lists.newArrayList(n).size() > 2) {
|
||||||
sbx.append(" and/or ");
|
sbx.append(" and/or ");
|
||||||
final Cost cost2 = new Cost(n[2], false);
|
final Cost cost2 = new Cost(n[2], false);
|
||||||
sbx.append(cost2.toSimpleString());
|
sbx.append(cost2.toSimpleString());
|
||||||
}
|
}
|
||||||
sbx.append(" (").append(inst.getReminderText()).append(")");
|
sbx.append(" (").append(inst.getReminderText()).append(")");
|
||||||
sbBefore.append(sbx).append("\r\n");
|
} else {
|
||||||
|
sbx.append("As an additional cost to cast this spell, you may ");
|
||||||
|
String costS = StringUtils.uncapitalize(cost.toSimpleString());
|
||||||
|
sbx.append(cost.hasManaCost() ? "pay " + costS : costS);
|
||||||
|
sbx.append(".\r\n");
|
||||||
}
|
}
|
||||||
|
sbBefore.append(sbx).append("\r\n");
|
||||||
} else if (keyword.startsWith("AlternateAdditionalCost")) {
|
} else if (keyword.startsWith("AlternateAdditionalCost")) {
|
||||||
final String[] k = keyword.split(":");
|
final String[] k = keyword.split(":");
|
||||||
final Cost cost1 = new Cost(k[1], false);
|
final Cost cost1 = new Cost(k[1], false);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Dragon's Fire
|
|||||||
ManaCost:1 R
|
ManaCost:1 R
|
||||||
Types:Instant
|
Types:Instant
|
||||||
K:Kicker:RevealOrChoose<1/Dragon>:Generic
|
K:Kicker:RevealOrChoose<1/Dragon>:Generic
|
||||||
A:SP$ DealDamage | ValidTgts$ Creature,Planeswalker | TgtPrompt$ Select target creature or planeswalker | NumDmg$ Y | CostDesc$ As an additional cost to cast this spell, you may reveal a Dragon card from your hand or choose a Dragon you control. | SpellDescription$ CARDNAME deals 3 damage to target creature or planeswalker. If you revealed a Dragon card or chose a Dragon as you cast this spell, CARDNAME deals damage equal to the power of that card or creature instead.
|
A:SP$ DealDamage | ValidTgts$ Creature,Planeswalker | TgtPrompt$ Select target creature or planeswalker | NumDmg$ Y | SpellDescription$ CARDNAME deals 3 damage to target creature or planeswalker. If you revealed a Dragon card or chose a Dragon as you cast this spell, CARDNAME deals damage equal to the power of that card or creature instead.
|
||||||
SVar:Y:Count$OptionalGenericCostPaid.X.3
|
SVar:Y:Count$OptionalGenericCostPaid.X.3
|
||||||
SVar:X:Revealed$CardPower
|
SVar:X:Revealed$CardPower
|
||||||
Oracle:As an additional cost to cast this spell, you may reveal a Dragon card from your hand or choose a Dragon you control.\nDragon's Fire deals 3 damage to target creature or planeswalker. If you revealed a Dragon card or chose a Dragon as you cast this spell, Dragon's Fire deals damage equal to the power of that card or creature instead.
|
Oracle:As an additional cost to cast this spell, you may reveal a Dragon card from your hand or choose a Dragon you control.\nDragon's Fire deals 3 damage to target creature or planeswalker. If you revealed a Dragon card or chose a Dragon as you cast this spell, Dragon's Fire deals damage equal to the power of that card or creature instead.
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ Name:Undergrowth
|
|||||||
ManaCost:G
|
ManaCost:G
|
||||||
Types:Instant
|
Types:Instant
|
||||||
K:Kicker:2 R:Generic
|
K:Kicker:2 R:Generic
|
||||||
A:SP$ Fog | Cost$ G | CostDesc$ As an additional cost to cast this spell, you may pay {2}{R}. | Condition$ OptionalCost | ConditionOptionalPaid$ False | SubAbility$ DBEffect | SpellDescription$ Prevent all combat damage that would be dealt this turn. If this spell's additional cost was paid, this effect doesn't affect combat damage that would be dealt by red creatures. | StackDescription$ SpellDescription
|
A:SP$ Fog | Condition$ OptionalCost | ConditionOptionalPaid$ False | SubAbility$ DBEffect | SpellDescription$ Prevent all combat damage that would be dealt this turn. If this spell's additional cost was paid, this effect doesn't affect combat damage that would be dealt by red creatures. | StackDescription$ SpellDescription
|
||||||
SVar:DBEffect:DB$ Effect | Condition$ OptionalCost | ConditionOptionalPaid$ True | Name$ Undergrowth Effect | StaticAbilities$ KWPump
|
SVar:DBEffect:DB$ Effect | Condition$ OptionalCost | ConditionOptionalPaid$ True | StaticAbilities$ KWPump
|
||||||
SVar:KWPump:Mode$ Continuous | EffectZone$ Command | AffectedZone$ Battlefield | Affected$ Creature.nonRed | AddKeyword$ Prevent all combat damage that would be dealt by CARDNAME. | Description$ Prevent all combat damage this turn except that from red creatures.
|
SVar:KWPump:Mode$ Continuous | EffectZone$ Command | AffectedZone$ Battlefield | Affected$ Creature.nonRed | AddKeyword$ Prevent all combat damage that would be dealt by CARDNAME. | Description$ Prevent all combat damage this turn except that from red creatures.
|
||||||
AI:RemoveDeck:All
|
AI:RemoveDeck:All
|
||||||
DeckHints:Color$Red
|
DeckHints:Color$Red
|
||||||
|
|||||||
9
forge-gui/res/cardsfolder/upcoming/voltage_surge.txt
Normal file
9
forge-gui/res/cardsfolder/upcoming/voltage_surge.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Name:Voltage Surge
|
||||||
|
ManaCost:R
|
||||||
|
Types:Instant
|
||||||
|
K:Kicker:Sac<1/Artifact>:Generic
|
||||||
|
A:SP$ DealDamage | NumDmg$ X | ValidTgts$ Creature,Planeswalker | TgtPrompt$ Select target creature or planeswalker | SpellDescription$ CARDNAME deals 2 damage to target creature or planeswalker. If this spell's additional cost was paid, CARDNAME deals 4 damage instead.
|
||||||
|
SVar:X:Count$OptionalGenericCostPaid.4.2
|
||||||
|
DeckHints:Type$Artifact
|
||||||
|
DeckHas:Ability$Sacrifice
|
||||||
|
Oracle:As an additional cost to cast this spell, you may sacrifice an artifact.\nVoltage Surge deals 2 damage to target creature or planeswalker. If this spell's additional cost was paid, Voltage Surge deals 4 damage instead.
|
||||||
Reference in New Issue
Block a user