mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Fix bonus bar update for rogues
This commit is contained in:
@@ -478,8 +478,8 @@ local function IsInShapeshiftForm()
|
||||
return false
|
||||
end
|
||||
|
||||
function AB:UNIT_PORTRAIT_UPDATE()
|
||||
if arg1 == "player" and E.myclass == "DRUID" then
|
||||
function AB:UPDATE_BONUS_ACTIONBAR()
|
||||
if E.myclass == "ROGUE" or E.myclass == "DRUID" then
|
||||
local inForm = IsInShapeshiftForm()
|
||||
if inForm then
|
||||
BonusActionBarFrame:Show()
|
||||
@@ -511,7 +511,7 @@ function AB:Initialize()
|
||||
self:SecureHook("ActionButton_Update")
|
||||
self:RawHook("ActionButton_GetPagedID")
|
||||
self:SecureHook("PetActionBar_Update", "UpdatePet")
|
||||
self:RegisterEvent("UNIT_PORTRAIT_UPDATE")
|
||||
self:RegisterEvent("UPDATE_BONUS_ACTIONBAR")
|
||||
|
||||
if E.myclass == "WARRIOR" or (E.myclass == "DRUID" and IsInShapeshiftForm()) then
|
||||
BonusActionBarFrame:Show()
|
||||
|
||||
Reference in New Issue
Block a user