mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed costChanges not applying to AI spells with a cost of 0.
This commit is contained in:
@@ -292,6 +292,10 @@ public class CostPayment {
|
||||
final Card source = this.ability.getSourceCard();
|
||||
final ArrayList<CostPart> parts = this.cost.getCostParts();
|
||||
|
||||
if (this.getCost().getCostMana() == null) {
|
||||
parts.add(new CostMana("0", 1));
|
||||
}
|
||||
|
||||
// Set all of the decisions before attempting to pay anything
|
||||
for (final CostPart part : parts) {
|
||||
if (!part.decideAIPayment(this.ability, source, this)) {
|
||||
|
||||
Reference in New Issue
Block a user