helpers: make hooksecurefunc append by default

This commit is contained in:
shagu
2025-07-30 20:26:29 +02:00
parent 3d963c851f
commit 344354d975
7 changed files with 17 additions and 19 deletions
+3 -3
View File
@@ -381,7 +381,7 @@ hooksecurefunc("CastSpell", function(id, bookType)
local spellName = GetSpellName(id, bookType)
CastCustom(spellName)
end
end, true)
end)
hooksecurefunc("CastSpellByName", function(spell, target)
_, lastrank = libspell.GetSpellInfo(spell)
@@ -393,7 +393,7 @@ hooksecurefunc("CastSpellByName", function(spell, target)
return
end
end
end, true)
end)
hooksecurefunc("UseAction", function(slot, target, button)
scanner:SetAction(slot)
@@ -404,6 +404,6 @@ hooksecurefunc("UseAction", function(slot, target, button)
if GetActionText(slot) or not IsCurrentAction(slot) then return end
CastCustom(spellName)
end, true)
end)
ShaguTweaks.libcast = libcast