- Allow multiple Destinations for TriggerChangesZone (fixes Reyhan, Last of the Abzan).

This commit is contained in:
Agetian
2016-12-18 18:46:09 +00:00
parent a2759ace2c
commit d07a0913ad

View File

@@ -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;
}
}