Skip to content

Commit 6ccd93e

Browse files
committed
Fixing event issues.
1 parent 17d3e0a commit 6ccd93e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Core.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,13 @@ function cPointDisplay:GetPoints(CurClass, CurType)
539539
if CurType == "ac" then
540540
NewPoints = UnitPower("player", SPELL_POWER_ARCANE_CHARGES)
541541
end
542-
end
543542
-- Hunter
544-
elseif CurClass == "HUNTER" and PlayerSpec == SPEC_HUNTER_SURVIVAL then
543+
elseif CurClass == "HUNTER" and PlayerSpec == 1 then
545544
-- Mongoose Bite Charges
546545
if CurType == "mb" then
547546
NewPoints = GetSpellCharges(190928)
548547
end
548+
end
549549
Points[CurType] = NewPoints
550550
end
551551

@@ -1063,6 +1063,9 @@ function cPointDisplay:PLAYER_LOGIN()
10631063
self:RegisterBucketEvent(EventList, UpdateSpeed, "UpdatePoints")
10641064
-- Instant Events
10651065
self:RegisterEvent("PLAYER_TARGET_CHANGED", "UpdatePoints")
1066+
if (PlayerClass == "HUNTER") then
1067+
self:RegisterEvent("SPELL_UPDATE_CHARGES", "UpdatePoints")
1068+
end
10661069

10671070
-- Class Colors
10681071
if CUSTOM_CLASS_COLORS then

0 commit comments

Comments
 (0)