diff --git a/ClassicCastbars/ClassicCastbars.lua b/ClassicCastbars/ClassicCastbars.lua index 7fc4f23..a7fa160 100644 --- a/ClassicCastbars/ClassicCastbars.lua +++ b/ClassicCastbars/ClassicCastbars.lua @@ -276,8 +276,12 @@ function ClassicCastbars:NAME_PLATE_UNIT_ADDED(namePlateUnitToken) -- Hide Blizz castbar if not plateCastbar.ClassicCastbarsHooked then - plateCastbar:HookScript("OnShow", BlizzNameplateCastbar_OnShow) plateCastbar.ClassicCastbarsHooked = true + plateCastbar:HookScript("OnShow", BlizzNameplateCastbar_OnShow) + end + if ClassicCastbars.db.nameplate.enabled then + -- hide immediately incase its already shown + plateCastbar:Hide() end end