Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't ned conditional anymore

  • Loading branch information...
commit c4ed7e3a45f5885b80b2fcd2173ae7adc27c08a8 1 parent 9d427d5
@tekkub tekkub authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 VendorBait.lua
View
5 VendorBait.lua
@@ -1,5 +1,4 @@
-local prefix = (select(4, GetBuildInfo()) < 30300) and "QuestRewardItem" or "QuestInfoItem"
local f = LibStub("tekShiner").new(QuestRewardScrollChildFrame)
f:Hide()
@@ -17,10 +16,10 @@ f:SetScript("OnEvent", function(self)
if besti then
self:ClearAllPoints()
- self:SetAllPoints(prefix..besti.."IconTexture")
+ self:SetAllPoints("QuestInfoItem"..besti.."IconTexture")
self:Show()
end
end)
-if _G[prefix.."1"]:IsVisible() then f:GetScript("OnEvent")(f) end
+if QuestInfoItem1:IsVisible() then f:GetScript("OnEvent")(f) end
Please sign in to comment.
Something went wrong with that request. Please try again.