- fixed the pet/vehicle cast bar not being hidden when hiding the "blizzard cast bar" via the player cast module

This commit is contained in:
Parnic
2009-07-18 05:09:44 +00:00
parent 53fc7b4878
commit 19f6814508

View File

@ -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