Skip to content

Commit b63d65c

Browse files
Jonathan-DangLocalIdentityLocalIdentity
authored
Add support for Monk's "Sunder my Enemies..." Invoker Ascendancy (#625)
* Created Mod Flag and Node Binding. * Apply new crit flag to resist in CalcOffence. NOTE: In breakdown, it will not show as crit cfg add-on isn't implemented yet. Only visible change in Average and Skill DPS. * Add crit condition and fix variable name --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com> Co-authored-by: LocalIdentity <31035929+LocalIdentity@users.noreply.github.com>
1 parent 85aad53 commit b63d65c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/Data/ModCache.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ c["Critical Hits Ignore Enemy Monster Lightning Resistance Trigger Greater Light
22882288
c["Critical Hits Poison the enemy"]={nil,"Critical Hits Poison the enemy "}
22892289
c["Critical Hits do not deal extra Damage"]={{[1]={flags=0,keywordFlags=0,name="NoCritMultiplier",type="FLAG",value=true}},nil}
22902290
c["Critical Hits ignore Enemy Monster Elemental Resistances"]={{[1]={[1]={type="Condition",var="CriticalStrike"},flags=0,keywordFlags=0,name="IgnoreElementalResistances",type="FLAG",value=true}},nil}
2291-
c["Critical Hits ignore non-negative Enemy Monster Elemental Resistances"]={nil,"Critical Hits ignore non-negative Enemy Monster Elemental Resistances "}
2291+
c["Critical Hits ignore non-negative Enemy Monster Elemental Resistances"]={{[1]={[1]={type="Condition",var="CriticalStrike"},flags=0,keywordFlags=0,name="CritsIgnoreNonNegativeEleRes",type="FLAG",value=true}},nil}
22922292
c["Critical Hits with Daggers have a 25% chance to Poison the Enemy"]={{[1]={[1]={type="Condition",var="CriticalStrike"},flags=524288,keywordFlags=0,name="PoisonChance",type="BASE",value=25}},nil}
22932293
c["Culling Strike"]={{[1]={[1]={effectType="Global",type="GlobalEffect",unscalable=true},flags=0,keywordFlags=0,name="CullPercent",type="MAX",value=10}},nil}
22942294
c["Culling Strike against Enemies you Mark"]={{[1]={[1]={actor="enemy",type="ActorCondition",var="Marked"},flags=0,keywordFlags=0,name="CullPercent",type="MAX",value=10}},nil}

src/Modules/CalcOffence.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3241,6 +3241,9 @@ function calcs.offence(env, actor, activeSkill)
32413241
end
32423242
sourceRes = elementUsed
32433243
elseif isElemental[damageType] then
3244+
if resist > 0 and modDB:Flag(cfg, "CritsIgnoreNonNegativeEleRes") then
3245+
resist = 0
3246+
end
32443247
pen = skillModList:Sum("BASE", cfg, damageType.."Penetration", "ElementalPenetration")
32453248
takenInc = takenInc + enemyDB:Sum("INC", cfg, "ElementalDamageTaken")
32463249
elseif damageType == "Chaos" then

src/Modules/ModParser.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,6 +2851,8 @@ local specialModList = {
28512851
["effect and duration of flames of chayula on you is doubled"] = function() return {
28522852
mod("Multiplier:FlameEffect", "BASE", 1),
28532853
} end,
2854+
-- Monk - Invoker
2855+
["critical hits ignore non%-negative enemy monster elemental resistances"] = { flag("CritsIgnoreNonNegativeEleRes", { type = "Condition", var = "CriticalStrike" }) },
28542856
-- Chronomancer
28552857
["skills have (%d+)%% chance to not consume a cooldown when used"] = function(num) return {
28562858
mod("CooldownChanceNotConsume", "BASE", num / 100, { type = "SkillType", skillType = SkillType.Cooldown })

0 commit comments

Comments
 (0)