Skip to content

Commit 1fe3137

Browse files
committed
align es inc by spellblock mod placement and wording to similar mods
1 parent 0475a3c commit 1fe3137

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spec/System/TestDefence_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ describe("TestDefence", function()
463463
build.configTab.input.customMods = "\z
464464
You have no intelligence\n\z
465465
100 Energy shield \n\z
466-
maximum energy shield is increased by chance to block spell damage\n\z
466+
energy shield is increased by chance to block spell damage\n\z
467467
50% chance to block spell damage\n\z
468468
"
469469
build.configTab:BuildModList()
@@ -480,7 +480,7 @@ describe("TestDefence", function()
480480
build.configTab.input.customMods = "\z
481481
You have no intelligence\n\z
482482
100 Energy shield \n\z
483-
maximum energy shield is increased by chance to block spell damage\n\z
483+
energy shield is increased by chance to block spell damage\n\z
484484
100% chance to block spell damage\n\z
485485
"
486486
build.configTab:BuildModList()

src/Modules/CalcDefence.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,8 @@ function calcs.defence(env, actor)
761761
break
762762
end
763763
end
764-
if modDB:Flag(nil, "MaximumEnergyShieldIncreasedByChanceToBlockSpellDamage") then
765-
for i, value in ipairs(modDB:Tabulate("FLAG", nil, "MaximumEnergyShieldIncreasedByChanceToBlockSpellDamage")) do
764+
if modDB:Flag(nil, "EnergyShieldIncreasedByChanceToBlockSpellDamage") then
765+
for i, value in ipairs(modDB:Tabulate("FLAG", nil, "EnergyShieldIncreasedByChanceToBlockSpellDamage")) do
766766
local mod = value.mod
767767
modDB:NewMod("EnergyShield", "INC", output.SpellBlockChance, mod.source)
768768
break

src/Modules/ModParser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3109,7 +3109,6 @@ local specialModList = {
31093109
["your damage with critical strikes is lucky"] = { flag("CritLucky") },
31103110
["critical strikes deal no damage"] = { mod("Damage", "MORE", -100, { type = "Condition", var = "CriticalStrike" }) },
31113111
["critical strike chance is increased by uncapped lightning resistance"] = { flag("CritChanceIncreasedByUncappedLightningRes") },
3112-
["maximum energy shield is increased by chance to block spell damage"] = { flag("MaximumEnergyShieldIncreasedByChanceToBlockSpellDamage") },
31133112
["critical strike chance is increased by lightning resistance"] = { flag("CritChanceIncreasedByLightningRes") },
31143113
["critical strike chance is increased by overcapped lightning resistance"] = { flag("CritChanceIncreasedByOvercappedLightningRes") },
31153114
["barrage and frenzy have (%d+)%% increased critical strike chance per endurance charge"] = function(num) return { mod("CritChance", "INC", num, { type = "Multiplier", var = "EnduranceCharge" }, { type = "SkillName", skillNameList = { "Barrage", "Frenzy" }, includeTransfigured = true }) } end,
@@ -4270,6 +4269,7 @@ local specialModList = {
42704269
mod("EnemyModifier", "LIST", { mod = mod("ColdResist", "INC", num) }),
42714270
} end,
42724271
["nearby enemies are blinded while physical aegis is not depleted"] = { mod("EnemyModifier", "LIST", { mod = flag("Condition:Blinded") }, { type = "Condition", var = "PhysicalAegisDepleted", neg = true }) },
4272+
["energy shield is increased by chance to block spell damage"] = { flag("EnergyShieldIncreasedByChanceToBlockSpellDamage") },
42734273
["armour is increased by uncapped fire resistance"] = { flag( "ArmourIncreasedByUncappedFireRes") },
42744274
["armour is increased by overcapped fire resistance"] = { flag( "ArmourIncreasedByOvercappedFireRes") },
42754275
["minion life is increased by t?h?e?i?r? ?overcapped fire resistance"] = { mod("MinionModifier", "LIST", { mod = mod("Life", "INC", 1, { type = "PerStat", stat = "FireResistOverCap", div = 1 }) }) },

0 commit comments

Comments
 (0)