Make sure C_PetBattles exists before checking IsInBattle()
Ludovicus [06-19-19 - 22:33]
Make sure C_PetBattles exists before checking IsInBattle()
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