mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
fixed Replacement Effects
This commit is contained in:
@@ -37,6 +37,7 @@ public class ReplaceEffect extends SpellAbilityEffect {
|
||||
}
|
||||
// effect was updated
|
||||
originalParams.put("ReplacementResult", ReplacementResult.Updated);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
// effect was replaced with something else
|
||||
|
||||
@@ -410,6 +410,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class ReplaceGainLife extends ReplacementEffect {
|
||||
*/
|
||||
@Override
|
||||
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;
|
||||
}
|
||||
if (this.getMapParams().containsKey("ValidPlayer")) {
|
||||
|
||||
Reference in New Issue
Block a user