Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed CastSpellByName not being able to self cast #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed CastSpellByName not being able to self cast
DBFBlackbull committed Jul 16, 2023
commit 99337e1cc9506665d38bda8b02b627845897015c
4 changes: 2 additions & 2 deletions TotemTimers.lua
Original file line number Diff line number Diff line change
@@ -557,9 +557,9 @@ function TotemTimers_SetupHooks()
end;
--Additions for hooking CastSpellByName
TT_HookFunctions["CastSpellByName"] = CastSpellByName;
CastSpellByName = function(Spell_Name)
CastSpellByName = function(Spell_Name,onself)
TotemTimers_CastSpellByName(Spell_Name);
TT_HookFunctions["CastSpellByName"](Spell_Name);
TT_HookFunctions["CastSpellByName"](Spell_Name,onself);
end;
--Additions for hooking UseInventoryItem
TT_HookFunctions["UseInventoryItem"] = UseInventoryItem;