From ce80b475af520daa7f6acb8fbbe2d06af0819e42 Mon Sep 17 00:00:00 2001 From: John Pasula Date: Tue, 25 Jan 2011 11:05:04 -0700 Subject: [PATCH] Only get first aid name once, instead of repeating it everytime you do a /scan function. --- core.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core.lua b/core.lua index bed70ed..e2352c0 100644 --- a/core.lua +++ b/core.lua @@ -1488,6 +1488,8 @@ function addon:InitializeProfession(profession) end do + local fa = GetSpellInfo(45542) + -- Code snippet stolen from GearGuage by Torhal and butchered by Ackis local function StrSplit(input) if not input then return nil, nil end @@ -1498,7 +1500,6 @@ do if var1 then -- Small hack to get code to work with first aid. - local fa = GetSpellInfo(45542) if var1:lower() == fa:lower() then arg2 = var1 else -- 1.7.9.5