diff --git a/modules/CastBar.lua b/modules/CastBar.lua index a44d942..a544851 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -346,9 +346,12 @@ function CastBar.prototype:ToggleBlizzCast(on) CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START"); CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_UPDATE"); CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP"); + + PetCastingBarFrame:RegisterEvent("UNIT_PET"); else -- remove blizz cast bar CastingBarFrame:UnregisterAllEvents() + PetCastingBarFrame:UnregisterAllEvents() end end