Skip to content

Commit 67bcbb4

Browse files
committed
Bug fixes.
1 parent f1bf6cf commit 67bcbb4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Core.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ function cPointDisplay:UpdatePointDisplay(...)
446446

447447
-- Do we hide the Display
448448
if ((Points[tid] == 0 and not db[ic].types[tid].general.showatzero)
449+
or (Points[tid] == nil)
449450
or (ic ~= PlayerClass and ic ~= "GENERAL") -- Not my class
450451
or ((PlayerClass ~= "ROGUE" and (PlayerClass ~= "DRUID" and PlayerSpec ~= 1)) and (ic == "GENERAL") and not UnitHasVehicleUI("player")) -- Impossible to have Combo Points
451452
or (db[ic].types[tid].general.hidein.vehicle and UnitHasVehicleUI("player")) -- Hide in vehicle
@@ -540,7 +541,7 @@ function cPointDisplay:GetPoints(CurClass, CurType)
540541
NewPoints = UnitPower("player", SPELL_POWER_ARCANE_CHARGES)
541542
end
542543
-- Hunter
543-
elseif CurClass == "HUNTER" and PlayerSpec == 1 then
544+
elseif CurClass == "HUNTER" and PlayerSpec == 3 then
544545
-- Mongoose Bite Charges
545546
if CurType == "mb" then
546547
NewPoints = GetSpellCharges(190928)
@@ -1005,7 +1006,7 @@ function cPointDisplay:HideUIElements()
10051006
end
10061007

10071008
function cPointDisplay:UpdateSpec()
1008-
PlayerSpec = GetActiveSpecGroup()
1009+
PlayerSpec = GetSpecialization()
10091010
end
10101011

10111012
function cPointDisplay:PLAYER_ENTERING_WORLD()

0 commit comments

Comments
 (0)