mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
*Fixed early morning code
This commit is contained in:
@@ -35,22 +35,34 @@ public class ReplaceMoved extends ReplacementEffect {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean matchedZone = false;
|
||||||
if (this.getMapParams().containsKey("Origin")) {
|
if (this.getMapParams().containsKey("Origin")) {
|
||||||
for(ZoneType z : ZoneType.listValueOf(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 true;
|
matchedZone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!matchedZone)
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.getMapParams().containsKey("Destination")) {
|
if (this.getMapParams().containsKey("Destination")) {
|
||||||
|
matchedZone = false;
|
||||||
for(ZoneType z : ZoneType.listValueOf(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 true;
|
matchedZone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!matchedZone)
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user