Skip to content

Commit

Permalink
Fix Spellblade not scaling past level 13 (#6504)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 authored Aug 25, 2023
1 parent cd69491 commit 0fb26ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,9 @@ function calcs.offence(env, actor, activeSkill)
local weapon2info = env.data.weaponTypeInfo[actor.weaponData2.type]
-- -- account for Spellblade
-- Note: we check conditions of Main Hand weapon using actor.itemList as actor.weaponData1 is populated with unarmed values when no weapon slotted.
local spellbladeMulti = skillModList:Max(skillCfg, "OneHandWeaponDamageAppliesToSpells") or 100
local spellbladeMulti = skillModList:Max(skillCfg, "OneHandWeaponDamageAppliesToSpells")
local spellbladeDiffMulti = skillModList:Max(skillCfg, "OneHandWeaponDamageAppliesToSpellsWithTwoDifferentTypes")
if spellbladeMulti > 100 and actor.itemList["Weapon 1"] and actor.itemList["Weapon 1"].weaponData and actor.itemList["Weapon 1"].weaponData[1] and weapon1info.melee and weapon1info.oneHand then
if spellbladeMulti and actor.itemList["Weapon 1"] and actor.itemList["Weapon 1"].weaponData and actor.itemList["Weapon 1"].weaponData[1] and weapon1info.melee and weapon1info.oneHand then
local multiplier = spellbladeMulti / 100 * (weapon2info and 0.6 or 1)
local diffMulti = actor.weaponData1 and actor.weaponData2.type and actor.weaponData1.type ~= actor.weaponData2.type and spellbladeDiffMulti and spellbladeDiffMulti / 100 * 0.6 or 0
multiplier = multiplier + diffMulti
Expand Down

0 comments on commit 0fb26ca

Please sign in to comment.