Skip to content

Commit

Permalink
Fix PvP Load condition for Characters without a PvP talent selected
Browse files Browse the repository at this point in the history
Github-Issue: 682
  • Loading branch information
InfusOnWoW authored and Stanzilla committed Aug 28, 2018
1 parent cb96f59 commit dbf1791
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WeakAuras/Prototypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbf1791

Please sign in to comment.