- Fixed AI not calling reportPaidCardsTo.

This commit is contained in:
Sloth
2013-05-10 20:50:42 +00:00
parent 42b18e2fbc
commit 605e1e3c47

View File

@@ -194,6 +194,11 @@ public class CostPayment {
for (final CostPart part : parts) {
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;
}