mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fix Monstrous War-Leech (#1474)
This commit is contained in:
@@ -3565,7 +3565,7 @@ public class AbilityUtils {
|
|||||||
* @return a int.
|
* @return a int.
|
||||||
*/
|
*/
|
||||||
public static int handlePaid(final Iterable<Card> paidList, final String string, final Card source, CardTraitBase ctb) {
|
public static int handlePaid(final Iterable<Card> paidList, final String string, final Card source, CardTraitBase ctb) {
|
||||||
if (paidList == null) {
|
if (Iterables.isEmpty(paidList)) {
|
||||||
if (string.contains(".")) {
|
if (string.contains(".")) {
|
||||||
final String[] splitString = string.split("\\.", 2);
|
final String[] splitString = string.split("\\.", 2);
|
||||||
return doXMath(0, splitString[1], source, ctb);
|
return doXMath(0, splitString[1], source, ctb);
|
||||||
@@ -3594,6 +3594,10 @@ public class AbilityUtils {
|
|||||||
return Aggregates.sum(paidList, CardPredicates.Accessors.fnGetNetToughness);
|
return Aggregates.sum(paidList, CardPredicates.Accessors.fnGetNetToughness);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (string.startsWith("GreatestCMC")) {
|
||||||
|
return Aggregates.max(paidList, CardPredicates.Accessors.fnGetCmc);
|
||||||
|
}
|
||||||
|
|
||||||
if (string.startsWith("DifferentCMC")) {
|
if (string.startsWith("DifferentCMC")) {
|
||||||
final Set<Integer> diffCMC = new HashSet<>();
|
final Set<Integer> diffCMC = new HashSet<>();
|
||||||
for (final Card card : paidList) {
|
for (final Card card : paidList) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ K:Kicker:U
|
|||||||
K:ETBReplacement:Other:TrigMill
|
K:ETBReplacement:Other:TrigMill
|
||||||
SVar:TrigMill:DB$ Mill | NumCards$ 4 | Defined$ You | Condition$ Kicked | SpellDescription$ As CARDNAME enters the battlefield, if it was kicked, mill four cards. (To mill a card, put the top card of your library into your graveyard.)
|
SVar:TrigMill:DB$ Mill | NumCards$ 4 | Defined$ You | Condition$ Kicked | SpellDescription$ As CARDNAME enters the battlefield, if it was kicked, mill four cards. (To mill a card, put the top card of your library into your graveyard.)
|
||||||
S:Mode$ Continuous | EffectZone$ All | CharacteristicDefining$ True | SetPower$ X | SetToughness$ X | Description$ CARDNAME's power and toughness are each equal to the highest mana value among cards in your graveyard.
|
S:Mode$ Continuous | EffectZone$ All | CharacteristicDefining$ True | SetPower$ X | SetToughness$ X | Description$ CARDNAME's power and toughness are each equal to the highest mana value among cards in your graveyard.
|
||||||
SVar:X:Count$Valid Creature.YouOwn$GreatestPower
|
SVar:X:Count$ValidGraveyard Card.YouOwn$GreatestCMC
|
||||||
DeckHas:Ability$Graveyard|Mill
|
DeckHas:Ability$Graveyard|Mill
|
||||||
SVar:NoZeroToughnessAI:True
|
SVar:NoZeroToughnessAI:True
|
||||||
DeckHints:Color$Blue
|
DeckHints:Color$Blue
|
||||||
|
|||||||
Reference in New Issue
Block a user