mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
parse Count$TriggeredManaSpent
This commit is contained in:
@@ -1824,6 +1824,12 @@ public class AbilityUtils {
|
||||
}
|
||||
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>
|
||||
if (sq[0].startsWith("Adamant")) {
|
||||
final String payingMana = StringUtils.join(sa.getRootAbility().getPayingMana());
|
||||
|
||||
Reference in New Issue
Block a user