mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
*Made ReplaceMoved work with zone lists for origin and destination.
This commit is contained in:
@@ -36,16 +36,20 @@ public class ReplaceMoved extends ReplacementEffect {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.getMapParams().containsKey("Origin")) {
|
if (this.getMapParams().containsKey("Origin")) {
|
||||||
ZoneType z = ZoneType.smartValueOf(this.getMapParams().get("Origin"));
|
for(ZoneType z : ZoneType.listValueOf(this.getMapParams().get("Origin"))) {
|
||||||
if (z != (ZoneType) runParams.get("Origin")) {
|
if(z == (ZoneType) runParams.get("Origin"))
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (this.getMapParams().containsKey("Destination")) {
|
if (this.getMapParams().containsKey("Destination")) {
|
||||||
ZoneType z = ZoneType.smartValueOf(this.getMapParams().get("Destination"));
|
for(ZoneType z : ZoneType.listValueOf(this.getMapParams().get("Destination"))) {
|
||||||
if (z != (ZoneType) runParams.get("Destination")) {
|
if(z == (ZoneType) runParams.get("Destination"))
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user