mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Fixed a NPE in TriggerCrewed.
This commit is contained in:
@@ -21,6 +21,10 @@ public class TriggerCrewed extends Trigger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.mapParams.containsKey("ValidCrew")) {
|
if (this.mapParams.containsKey("ValidCrew")) {
|
||||||
|
if (runParams2.get("Crew") == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
boolean passes = false;
|
boolean passes = false;
|
||||||
for (Object member : (CardCollection)runParams2.get("Crew")) {
|
for (Object member : (CardCollection)runParams2.get("Crew")) {
|
||||||
passes |= matchesValid(member, this.mapParams.get("ValidCrew").split(","),
|
passes |= matchesValid(member, this.mapParams.get("ValidCrew").split(","),
|
||||||
|
|||||||
Reference in New Issue
Block a user