mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed AI not calling reportPaidCardsTo.
This commit is contained in:
@@ -194,6 +194,11 @@ public class CostPayment {
|
|||||||
|
|
||||||
for (final CostPart part : parts) {
|
for (final CostPart part : parts) {
|
||||||
part.payAI(decisions.get(part.getClass()), ai, this.ability, this.ability.getSourceCard());
|
part.payAI(decisions.get(part.getClass()), ai, this.ability, this.ability.getSourceCard());
|
||||||
|
// abilities care what was used to pay for them
|
||||||
|
if( part instanceof CostPartWithList ) {
|
||||||
|
((CostPartWithList) part).reportPaidCardsTo(ability);
|
||||||
|
((CostPartWithList) part).resetList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user