Skip to content

Commit

Permalink
fixed CastSpellByName not being able to self cast
Browse files Browse the repository at this point in the history
  • Loading branch information
DBFBlackbull committed Jul 16, 2023
1 parent a4107a8 commit 99337e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TotemTimers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99337e1

Please sign in to comment.