- Moved the code fragment a bit.

git-svn-id: http://svn.slightlymagic.net/forge/trunk@35702 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
Agetian 2017-09-21 18:17:36 +00:00
parent 5441dc46b4
commit aba305a24f

View File

@ -67,6 +67,10 @@ public class ReplaceDamage extends ReplacementEffect {
return false;
}
}
if (((Integer) runParams.get("DamageAmount")) == 0) {
// If no actual damage is dealt, there is nothing to replace
return false;
}
if (hasParam("DamageAmount")) {
String full = getParam("DamageAmount");
String operator = full.substring(0, 2);
@ -82,10 +86,6 @@ public class ReplaceDamage extends ReplacementEffect {
return false;
}
}
if (((Integer) runParams.get("DamageAmount")) == 0) {
// If no actual damage is dealt, there is nothing to replace
return false;
}
if (hasParam("IsCombat")) {
if (getParam("IsCombat").equals("True")) {
if (!((Boolean) runParams.get("IsCombat"))) {