mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 01:38:13 +00:00
fix NPE
This commit is contained in:
committed by
leriomaggio
parent
9bf67e7231
commit
32fda05aed
@@ -1380,6 +1380,8 @@ public class CardView extends GameEntityView {
|
||||
int count = 0;
|
||||
if (!state.getManaAbilities().isEmpty()) {
|
||||
for (SpellAbility sa : state.getManaAbilities()) {
|
||||
if (sa == null || sa.getManaPart() == null)
|
||||
continue;
|
||||
if (sa.getManaPart().isAnyMana()) {
|
||||
anyMana = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user