Skip to content

Commit e289d8f

Browse files
committed
Runic Ward bypass
1 parent 3431ee8 commit e289d8f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Modules/CalcDefence.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ function calcs.reducePoolsByDamage(poolTable, damageTable, actor)
570570
resourcesLostToTypeDamage[damageType].sharedGuard = tempDamage >= 1 and tempDamage or nil
571571
end
572572
if ward > 0 then
573-
local tempDamage = m_min(damageRemainder * (1 - (modDB:Sum("BASE", nil, "WardBypass") or 0) / 100), ward)
573+
local tempDamage = m_min(damageRemainder * (1 - (modDB:Sum("BASE", nil, "RunicWardBypass") or 0) / 100), ward)
574574
ward = ward - tempDamage
575575
damageRemainder = damageRemainder - tempDamage
576576
resourcesLostToTypeDamage[damageType].runicWard = tempDamage >= 1 and tempDamage or nil
@@ -3053,7 +3053,7 @@ function calcs.buildDefenceEstimations(env, actor)
30533053
DamageIn["TrackRecoupable"] = false
30543054
DamageIn["TrackLifeLossOverTime"] = false
30553055
end
3056-
DamageIn["WardBypass"] = DamageIn["WardBypass"] or modDB:Sum("BASE", nil, "WardBypass") or 0
3056+
DamageIn["RunicWardBypass"] = DamageIn["RunicWardBypass"] or modDB:Sum("BASE", nil, "RunicWardBypass") or 0
30573057

30583058
local VaalArcticArmourHitsLeft = output.VaalArcticArmourLife
30593059
if DamageIn["cycles"] > 1 then
@@ -3548,7 +3548,7 @@ function calcs.buildDefenceEstimations(env, actor)
35483548
-- fix total pools, as they aren't used anymore
35493549
for _, damageType in ipairs(dmgTypeList) do
35503550
-- ward
3551-
local wardBypass = modDB:Sum("BASE", nil, "WardBypass") or 0
3551+
local wardBypass = modDB:Sum("BASE", nil, "RunicWardBypass") or 0
35523552
if wardBypass > 0 then
35533553
local poolProtected = output.RunicWard / (1 - wardBypass / 100) * (wardBypass / 100)
35543554
local sourcePool = output[damageType.."TotalHitPool"]

src/Modules/ModParser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ local specialModList = {
25312531
["auras from your skills have (%d+)%% increased effect on you"] = function(num) return { mod("SkillAuraEffectOnSelf", "INC", num) } end,
25322532
["increases and reductions to mana regeneration rate instead apply to rage regeneration rate"] = { flag("ManaRegenToRageRegen") },
25332533
["increases and reductions to maximum energy shield instead apply to ward"] = { flag("EnergyShieldToRunicWard") },
2534-
["(%d+)%% of damage taken bypasses ward"] = function(num) return { mod("WardBypass", "BASE", num) } end,
2534+
["all damage taken bypasses runic ward"] = { mod("RunicWardBypass", "BASE", 100) },
25352535
["maximum energy shield is (%d+)"] = function(num) return { mod("EnergyShield", "OVERRIDE", num ) } end,
25362536
["cannot have energy shield"] = { flag("CannotHaveES") },
25372537
["regenerate ([%d%.]+) life per second per maximum energy shield"] = function(num) return {

0 commit comments

Comments
 (0)