mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-13 17:00:49 +00:00
libcast: assign tooltip scanner only once on use
This commit is contained in:
+3
-3
@@ -414,12 +414,12 @@ end, true)
|
|||||||
|
|
||||||
hooksecurefunc("UseAction", function(slot, target, button)
|
hooksecurefunc("UseAction", function(slot, target, button)
|
||||||
scanner:SetAction(slot)
|
scanner:SetAction(slot)
|
||||||
_, lastrank = scanner:Line(1)
|
local spellName, rank = scanner:Line(1)
|
||||||
|
|
||||||
lastcasttex = GetActionTexture(slot)
|
lastcasttex = GetActionTexture(slot)
|
||||||
|
lastrank = rank
|
||||||
|
|
||||||
if GetActionText(slot) or not IsCurrentAction(slot) then return end
|
if GetActionText(slot) or not IsCurrentAction(slot) then return end
|
||||||
scanner:SetAction(slot)
|
|
||||||
local spellName = scanner:Line(1)
|
|
||||||
CastCustom(spellName)
|
CastCustom(spellName)
|
||||||
end, true)
|
end, true)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user