From 11ab7b3236eaa9b9fdc241876fa035f2ced9c9ba Mon Sep 17 00:00:00 2001 From: Openarl Date: Tue, 4 Oct 2016 23:42:11 +1000 Subject: [PATCH] Include elem resist in breakdown --- Modules/Calcs.lua | 9 +++++++++ manifest.xml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Modules/Calcs.lua b/Modules/Calcs.lua index a178eb11..4411fc4b 100644 --- a/Modules/Calcs.lua +++ b/Modules/Calcs.lua @@ -2011,6 +2011,15 @@ function calcs.buildOutput(build, input, output, mode) output["total_"..damageType] = 0 end if damageType ~= "physical" then + if damageType ~= "chaos" then + for _, domain in pairs({"spec_","gear_"}) do + local dmgResist = output[domain..damageType.."Resist"] + local elemResist = output[domain.."elementalResist"] + if dmgResist or elemResist then + output[domain..damageType.."Resist"] = (dmgResist or 0) + (elemResist or 0) + end + end + end local actual = output["total_"..damageType.."Resist"] local over = output["total_"..damageType.."ResistOverCap"] if over > 0 then diff --git a/manifest.xml b/manifest.xml index a82a0da0..3ff17b78 100644 --- a/manifest.xml +++ b/manifest.xml @@ -39,7 +39,7 @@ - +