From 659de89d0c1ed92c02edf7397174489b21e56d7f Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 30 Nov 2019 10:49:37 -0600 Subject: [PATCH] Fixed player cast error for users without LibCasterCasterino installed --- IceCastBar.lua | 12 +++++++----- changelog.txt | 3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/IceCastBar.lua b/IceCastBar.lua index 8fe9015..330000a 100644 --- a/IceCastBar.lua +++ b/IceCastBar.lua @@ -27,11 +27,13 @@ end -- module in Classic WoW if IceHUD.WowClassic then LibClassicCasterino = LibStub("LibClassicCasterino", true) - UnitCastingInfo = function(unit) - return LibClassicCasterino:UnitCastingInfo(unit) - end - UnitChannelInfo = function(unit) - return LibClassicCasterino:UnitChannelInfo(unit) + if LibClassicCasterino then + UnitCastingInfo = function(unit) + return LibClassicCasterino:UnitCastingInfo(unit) + end + UnitChannelInfo = function(unit) + return LibClassicCasterino:UnitChannelInfo(unit) + end end end -- end Fulzamoth change diff --git a/changelog.txt b/changelog.txt index 327fef7..7bee90b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +v1.12.9: +- (Classic) Fixed error in player cast bar if the user didn't have LibCasterCasterino installed. + v1.12.8: - (Classic) Fixed TargetCast bar to work for users with the LibCasterCasterino library installed. (thanks, Fulzamoth!)