From 6895cbd01cf934888fcc6f5e5db598445594ab65 Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Wed, 19 Jun 2019 18:33:01 -0400 Subject: [PATCH] Make sure C_PetBattles exists before checking IsInBattle() --- TomTom_CrazyArrow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua index 7d558e0..5434dc1 100755 --- a/TomTom_CrazyArrow.lua +++ b/TomTom_CrazyArrow.lua @@ -241,7 +241,7 @@ end function TomTom:ShowHideCrazyArrow() if self.profile.arrow.enable then - if self.profile.arrow.hideDuringPetBattles and C_PetBattles.IsInBattle() then + if self.profile.arrow.hideDuringPetBattles and C_PetBattles and C_PetBattles.IsInBattle() then wayframe:Hide() return end -- 1.7.9.5