mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
parse Count$TriggeredManaSpent
This commit is contained in:
@@ -1824,6 +1824,12 @@ public class AbilityUtils {
|
|||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
// Count$TriggeredManaSpent
|
||||||
|
if (sq[0].equals("TriggeredManaSpent")) {
|
||||||
|
final SpellAbility root = (SpellAbility) sa.getRootAbility().getTriggeringObject(AbilityKey.SpellAbility);
|
||||||
|
return root.getTotalManaSpent();
|
||||||
|
}
|
||||||
|
|
||||||
// Count$Adamant.<Color>.<True>.<False>
|
// Count$Adamant.<Color>.<True>.<False>
|
||||||
if (sq[0].startsWith("Adamant")) {
|
if (sq[0].startsWith("Adamant")) {
|
||||||
final String payingMana = StringUtils.join(sa.getRootAbility().getPayingMana());
|
final String payingMana = StringUtils.join(sa.getRootAbility().getPayingMana());
|
||||||
|
|||||||
Reference in New Issue
Block a user