mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 00:26:55 +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)
|
||||
scanner:SetAction(slot)
|
||||
_, lastrank = scanner:Line(1)
|
||||
local spellName, rank = scanner:Line(1)
|
||||
|
||||
lastcasttex = GetActionTexture(slot)
|
||||
lastrank = rank
|
||||
|
||||
if GetActionText(slot) or not IsCurrentAction(slot) then return end
|
||||
scanner:SetAction(slot)
|
||||
local spellName = scanner:Line(1)
|
||||
CastCustom(spellName)
|
||||
end, true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user