Skip to content

Commit

Permalink
[fix] Fix Spell hit chance for Warlock in Classic Era
Browse files Browse the repository at this point in the history
  • Loading branch information
BreakBB committed Sep 7, 2023
1 parent b99d660 commit 0770681
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Modules/Data/SpellHit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,8 @@ function _SpellHit:GetTalentSpellHitBonus()
end

if classId == Data.WARLOCK then
if ECS.IsWotlk then
local _, _, _, _, points, _, _, _ = GetTalentInfo(1, 5)
bonus = points -- 0-3% from Suppression
else
local _, _, _, _, points, _, _, _ = GetTalentInfo(1, 1)
bonus = points * 2 -- 0-10% from Suppression
end
local _, _, _, _, points, _, _, _ = GetTalentInfo(1, 5)
bonus = points -- 0-3% from Suppression
end

return bonus
Expand Down

0 comments on commit 0770681

Please sign in to comment.