mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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) {
|
public ManaCostBeingPaid(ManaCost manaCost, String srcRestriction) {
|
||||||
sourceRestriction = srcRestriction;
|
sourceRestriction = srcRestriction;
|
||||||
|
if( manaCost == null ) return;
|
||||||
for (ManaCostShard shard : manaCost.getShards()) {
|
for (ManaCostShard shard : manaCost.getShards()) {
|
||||||
if (shard == ManaCostShard.X) {
|
if (shard == ManaCostShard.X) {
|
||||||
cntX++;
|
cntX++;
|
||||||
|
|||||||
Reference in New Issue
Block a user