mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
api: use dynamic shortcut for string.gfind
This commit is contained in:
@@ -278,25 +278,25 @@ pfUI:RegisterModule("prediction", function ()
|
||||
pfUI.prediction.sender:SetScript("OnEvent", function()
|
||||
if event == "CHAT_MSG_SPELL_SELF_BUFF" then
|
||||
-- "Your %s heals %s for %d.";
|
||||
for spell, _, heal in string.gfind(arg1, healedselfother) do
|
||||
for spell, _, heal in gfind(arg1, healedselfother) do
|
||||
if spell == spell_queue[1] then cache[spell_queue[2]] = tonumber(heal) end
|
||||
return
|
||||
end
|
||||
|
||||
-- "Your %s heals you for %d."
|
||||
for spell, heal in string.gfind(arg1, healedselfself) do
|
||||
for spell, heal in gfind(arg1, healedselfself) do
|
||||
if spell == spell_queue[1] then cache[spell_queue[2]] = tonumber(heal) end
|
||||
return
|
||||
end
|
||||
|
||||
-- "Your %s critically heals %s for %d."
|
||||
for spell, heal in string.gfind(arg1, healedcritselfother) do
|
||||
for spell, heal in gfind(arg1, healedcritselfother) do
|
||||
if spell == spell_queue[1] and not cache[spell_queue[2]] then cache[spell_queue[2]] = tonumber(heal)*2/3 end
|
||||
return
|
||||
end
|
||||
|
||||
-- "Your %s critically heals you for %d."
|
||||
for spell, _, heal in string.gfind(arg1, healedcritselfself) do
|
||||
for spell, _, heal in gfind(arg1, healedcritselfself) do
|
||||
if spell == spell_queue[1] and not cache[spell_queue[2]] then cache[spell_queue[2]] = tonumber(heal)*2/3 end
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user