mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Merge branch 'master' into 'master'
Fix NPE in CostPartWithList (will need further rework / generalization later) See merge request core-developers/forge!3033
This commit is contained in:
@@ -132,8 +132,8 @@ public abstract class CostPartWithList extends CostPart {
|
|||||||
}
|
}
|
||||||
cardList.addAll(doListPayment(ability, targetCards));
|
cardList.addAll(doListPayment(ability, targetCards));
|
||||||
} else {
|
} else {
|
||||||
if (targetCards.isEmpty()) {
|
if (targetCards.isEmpty() && this instanceof CostFlipCoin) {
|
||||||
doPayment(ability, null); // e.g. CostFlipCoin
|
doPayment(ability, null); // TODO: generalize for other cost types if necessary
|
||||||
} else {
|
} else {
|
||||||
for (Card c : targetCards) {
|
for (Card c : targetCards) {
|
||||||
executePayment(ability, c);
|
executePayment(ability, c);
|
||||||
|
|||||||
Reference in New Issue
Block a user