From dbf17916668799eeae0933e5a0df73c800dbb913 Mon Sep 17 00:00:00 2001 From: Infus Date: Tue, 28 Aug 2018 18:52:39 +0200 Subject: [PATCH] Fix PvP Load condition for Characters without a PvP talent selected Github-Issue: 682 --- WeakAuras/Prototypes.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 5f6a5b3875..5b69373e8d 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -493,6 +493,9 @@ local pvpTalentId = { 3589, 3588, 3587 }; function WeakAuras.CheckPvpTalentByIndex(index) if (index <= 3) then local talentSlotInfo = C_SpecializationInfo.GetPvpTalentSlotInfo(1); + if (not talentSlotInfo or not talentSlotInfo.selectedTalentID) then + return false; + end return select(3, GetPvpTalentInfoByID(pvpTalentId[index])) == select(3, GetPvpTalentInfoByID(talentSlotInfo.selectedTalentID)); else local checkTalentSlotInfo = C_SpecializationInfo.GetPvpTalentSlotInfo(2)