helpers: make hooksecurefunc append by default
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user