mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fix NPE for unleash (and other triggers)
This commit is contained in:
@@ -120,7 +120,7 @@ public class ManaCostBeingPaid {
|
||||
}
|
||||
public ManaCostBeingPaid(ManaCost manaCost, String srcRestriction) {
|
||||
sourceRestriction = srcRestriction;
|
||||
|
||||
if( manaCost == null ) return;
|
||||
for (ManaCostShard shard : manaCost.getShards()) {
|
||||
if (shard == ManaCostShard.X) {
|
||||
cntX++;
|
||||
|
||||
Reference in New Issue
Block a user