From 696716606ea3b207398958fd25f8581985d4ded9 Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Wed, 22 Nov 2017 22:15:17 +0100 Subject: [PATCH] Bugfix --- AutoQueueBG.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AutoQueueBG.lua b/AutoQueueBG.lua index 1e5d812..73f5453 100644 --- a/AutoQueueBG.lua +++ b/AutoQueueBG.lua @@ -193,8 +193,9 @@ function AutoQueueBG:BuffPlayers() for i = 1, 40 do -- For each raid member local unit = "raid" .. i if AutoQueueBG:CheckRaidMember(unit) then - if AutoQueueBG:BuffDuration(unit, GetSpellInfo(GSDK)) < 15 then - BuffPlayer(unit, GSDK) + local spellName = GetSpellInfo(GSDK_ID) + if AutoQueueBG:BuffDuration(unit, spellName) < 15 then + AutoQueueBG:BuffPlayer(unit, GSDK_ID) return; end end