Fix recasting of class mounts instead of dismount
This commit is contained in:
+9
-3
@@ -125,9 +125,15 @@ local function MakeMountButton(name, forceGround)
|
|||||||
self:SetAttribute("type1", "item")
|
self:SetAttribute("type1", "item")
|
||||||
self:SetAttribute("item1", mount.bag .. " " .. mount.slot)
|
self:SetAttribute("item1", mount.bag .. " " .. mount.slot)
|
||||||
elseif mount and type(mount) == "number" then
|
elseif mount and type(mount) == "number" then
|
||||||
self:SetAttribute("type1", "spell")
|
if C_UnitAuras.GetPlayerAuraBySpellID(mount) then
|
||||||
self:SetAttribute("item1", nil)
|
self:SetAttribute("type1", "cancelaura")
|
||||||
self:SetAttribute("spell1", mount)
|
self:SetAttribute("item1", nil)
|
||||||
|
self:SetAttribute("spell1", mount)
|
||||||
|
else
|
||||||
|
self:SetAttribute("type1", "spell")
|
||||||
|
self:SetAttribute("item1", nil)
|
||||||
|
self:SetAttribute("spell1", mount)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self:SetAttribute("item1", nil)
|
self:SetAttribute("item1", nil)
|
||||||
self:SetAttribute("spell1", nil)
|
self:SetAttribute("spell1", nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user