From abad82caad171aa9e1c7985982e07fd78fce3067 Mon Sep 17 00:00:00 2001 From: omicron Date: Sun, 12 Jul 2026 02:05:11 +0200 Subject: [PATCH] Correct cancelaura button to be by name instead of by id --- src/main.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.lua b/src/main.lua index 5b54bb7..eab104c 100644 --- a/src/main.lua +++ b/src/main.lua @@ -125,10 +125,11 @@ local function MakeMountButton(name, forceGround) self:SetAttribute("type1", "item") self:SetAttribute("item1", mount.bag .. " " .. mount.slot) elseif mount and type(mount) == "number" then - if C_UnitAuras.GetPlayerAuraBySpellID(mount) then + local aura = C_UnitAuras.GetPlayerAuraBySpellID(mount) + if aura ~= nil then self:SetAttribute("type1", "cancelaura") self:SetAttribute("item1", nil) - self:SetAttribute("spell1", mount) + self:SetAttribute("spell1", aura["name"]) else self:SetAttribute("type1", "spell") self:SetAttribute("item1", nil)