mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Checkstyle.
This commit is contained in:
@@ -6,7 +6,6 @@ import forge.AllZoneUtil;
|
||||
import forge.Card;
|
||||
import forge.Constant.Zone;
|
||||
import forge.card.spellability.SpellAbility;
|
||||
import forge.PlayerZone;
|
||||
|
||||
/**
|
||||
* TODO: Write javadoc for this type.
|
||||
@@ -14,8 +13,14 @@ import forge.PlayerZone;
|
||||
*/
|
||||
public class ReplaceMoved extends ReplacementEffect {
|
||||
|
||||
public ReplaceMoved(final HashMap<String,String> mapParams,final Card host) {
|
||||
super(mapParams,host);
|
||||
/**
|
||||
*
|
||||
* TODO: Write javadoc for Constructor.
|
||||
* @param mapParams   HashMap<String, String>
|
||||
* @param host   Card
|
||||
*/
|
||||
public ReplaceMoved(final HashMap<String, String> mapParams, final Card host) {
|
||||
super(mapParams, host);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
@@ -33,13 +38,13 @@ public class ReplaceMoved extends ReplacementEffect {
|
||||
}
|
||||
if (this.getMapParams().containsKey("Origin")) {
|
||||
Zone z = Zone.smartValueOf(this.getMapParams().get("Origin"));
|
||||
if(z != (Zone)runParams.get("Origin")) {
|
||||
if (z != (Zone) runParams.get("Origin")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (this.getMapParams().containsKey("Destination")) {
|
||||
Zone z = Zone.smartValueOf(this.getMapParams().get("Destination"));
|
||||
if(z != (Zone)runParams.get("Destination")) {
|
||||
if (z != (Zone) runParams.get("Destination")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -52,7 +57,7 @@ public class ReplaceMoved extends ReplacementEffect {
|
||||
*/
|
||||
@Override
|
||||
public ReplacementEffect getCopy() {
|
||||
return new ReplaceMoved(this.getMapParams(),this.getHostCard());
|
||||
return new ReplaceMoved(this.getMapParams(), this.getHostCard());
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
||||
Reference in New Issue
Block a user