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