Skip to content

Commit 84993f7

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Crit chance for Living Lightning and Caltrops (#2302)
Both of these skills use a crit chance override which we were not taking into account unless you were dealing damage with an offhand weapon Now all skills that have a crit chance value on the skill, will override the crit chance of the weapon or minion Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 7d1aa43 commit 84993f7

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

src/Data/Skills/spectre.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6563,7 +6563,6 @@ skills["TBAbyssCarrionWingBeam"] = {
65636563
statDescriptionScope = "skill_stat_descriptions",
65646564
baseFlags = {
65656565
spell = true,
6566-
attack = true,
65676566
hit = true,
65686567
triggerable = true,
65696568
},
@@ -6721,7 +6720,6 @@ skills["TBVaalPyramidBeam"] = {
67216720
statDescriptionScope = "skill_stat_descriptions",
67226721
baseFlags = {
67236722
spell = true,
6724-
attack = true,
67256723
triggerable = true,
67266724
},
67276725
constantStats = {
@@ -7523,7 +7521,6 @@ skills["TBExcavatorSceptreErraticBeam"] = {
75237521
statDescriptionScope = "skill_stat_descriptions",
75247522
baseFlags = {
75257523
spell = true,
7526-
attack = true,
75277524
triggerable = true,
75287525
hit = true,
75297526
},

src/Export/Skills/spectre.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ statMap = {
10041004

10051005
#skill TBAbyssCarrionWingBeam Beam
10061006
#set TBAbyssCarrionWingBeam
1007-
#flags spell attack hit triggerable
1007+
#flags spell hit triggerable
10081008
#mods
10091009
#skillEnd
10101010

@@ -1028,7 +1028,7 @@ statMap = {
10281028

10291029
#skill TBVaalPyramidBeam Pyramid Beam
10301030
#set TBVaalPyramidBeam
1031-
#flags spell attack triggerable
1031+
#flags spell triggerable
10321032
#mods
10331033
#skillEnd
10341034

@@ -1143,7 +1143,7 @@ statMap = {
11431143

11441144
#skill TBExcavatorSceptreErraticBeam Beam
11451145
#set TBExcavatorSceptreErraticBeam
1146-
#flags spell attack triggerable hit
1146+
#flags spell triggerable hit
11471147
#mods
11481148
#skillEnd
11491149

src/Modules/CalcOffence.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,9 +2386,6 @@ function calcs.offence(env, actor, activeSkill)
23862386
-- Unarmed override for Concoction skills
23872387
if skillFlags.unarmed then
23882388
source = copyTable(data.unarmedWeaponData[env.classId])
2389-
if skillData.CritChance then
2390-
source.CritChance = skillData.CritChance
2391-
end
23922389
end
23932390
if source.FacebreakerItemDamage and activeSkill.activeEffect.grantedEffect.weaponTypes and activeSkill.activeEffect.grantedEffect.weaponTypes["One Hand Mace"] then
23942391
for _, damageType in ipairs(dmgTypeList) do
@@ -2399,6 +2396,9 @@ function calcs.offence(env, actor, activeSkill)
23992396
if critOverride and source.type and source.type ~= "None" then
24002397
source.CritChance = critOverride
24012398
end
2399+
if skillData.CritChance then
2400+
source.CritChance = skillData.CritChance
2401+
end
24022402
t_insert(passList, {
24032403
label = "Main Hand",
24042404
source = source,
@@ -2416,9 +2416,6 @@ function calcs.offence(env, actor, activeSkill)
24162416
-- Unarmed override for Concoction skills
24172417
if skillFlags.unarmed then
24182418
source = copyTable(data.unarmedWeaponData[env.classId])
2419-
if skillData.CritChance then
2420-
source.CritChance = skillData.CritChance
2421-
end
24222419
end
24232420
if critOverride and source.type and source.type ~= "None" then
24242421
source.CritChance = critOverride

0 commit comments

Comments
 (0)