mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Allow multiple Destinations for TriggerChangesZone (fixes Reyhan, Last of the Abzan).
This commit is contained in:
@@ -75,7 +75,14 @@ public class TriggerChangesZone extends Trigger {
|
||||
|
||||
if (this.mapParams.containsKey("Destination")) {
|
||||
if (!this.mapParams.get("Destination").equals("Any")) {
|
||||
if (!this.mapParams.get("Destination").equals(runParams2.get("Destination"))) {
|
||||
boolean validDest = false;
|
||||
for (final String dest : this.mapParams.get("Destination").split(",")) {
|
||||
if (dest.equals(runParams2.get("Destination"))) {
|
||||
validDest = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!validDest) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user