mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fixed Replacement Effects
This commit is contained in:
@@ -37,6 +37,7 @@ public class ReplaceEffect extends SpellAbilityEffect {
|
|||||||
}
|
}
|
||||||
// effect was updated
|
// effect was updated
|
||||||
originalParams.put("ReplacementResult", ReplacementResult.Updated);
|
originalParams.put("ReplacementResult", ReplacementResult.Updated);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
// effect was replaced with something else
|
// effect was replaced with something else
|
||||||
|
|||||||
@@ -410,6 +410,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class ReplaceGainLife extends ReplacementEffect {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canReplace(Map<String, Object> runParams) {
|
public boolean canReplace(Map<String, Object> runParams) {
|
||||||
if (!runParams.get("Event").equals("GainLife") && (int)runParams.get("LifeGained") <= 0) {
|
if (!runParams.get("Event").equals("GainLife") || ((int)runParams.get("LifeGained")) <= 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.getMapParams().containsKey("ValidPlayer")) {
|
if (this.getMapParams().containsKey("ValidPlayer")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user