mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Fix crash when determining if mana costs can be paid for SpellAbilities with no source card
This commit is contained in:
@@ -97,8 +97,9 @@ public class ComputerUtilMana {
|
||||
|
||||
private static boolean payManaCost(final ManaCostBeingPaid cost, final SpellAbility sa, final Player ai, final boolean test, final int extraMana, boolean checkPlayable) {
|
||||
final Card card = sa.getSourceCard();
|
||||
|
||||
if (card != null) {
|
||||
adjustManaCostToAvoidNegEffects(cost, card);
|
||||
}
|
||||
|
||||
final ManaPool manapool = ai.getManaPool();
|
||||
List<ManaCostShard> unpaidShards = cost.getUnpaidShards();
|
||||
|
||||
Reference in New Issue
Block a user