From cef7ad783d904250d12bc52403d4cb0216267153 Mon Sep 17 00:00:00 2001 From: Artemis Date: Tue, 3 Sep 2024 20:45:26 +0100 Subject: [PATCH] Fix ashran currency detection on gossip --- DBM-PvP/Battlegrounds/Ashran.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DBM-PvP/Battlegrounds/Ashran.lua b/DBM-PvP/Battlegrounds/Ashran.lua index 8dd0cee..6386b6b 100644 --- a/DBM-PvP/Battlegrounds/Ashran.lua +++ b/DBM-PvP/Battlegrounds/Ashran.lua @@ -56,8 +56,8 @@ do end local cid = self:GetCIDFromGUID(UnitGUID("target") or "") if cid == 81870 or cid == 82204 or cid == 183198 then -- Anenga (Alliance) | Atomik/Narduke (Horde) - local _, currency = GetCurrencyInfo(944) -- Artifact Fragment - if currency > 0 and GetNumGossipOptions() == 3 then -- If boss isn't already summoned + local currency = GetCurrencyInfo(944) -- Artifact Fragment + if currency and currency.quantity > 0 and GetNumGossipOptions() == 3 then -- If boss isn't already summoned local gossipOptionID = self:GetGossipID() if gossipOptionID then self:SelectGossip(gossipOptionID)