Skip to content

Commit

Permalink
System - Updated nn wrapper to support RunMacroText changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteOne authored Aug 23, 2024
1 parent eece013 commit efae18d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Unlockers/nn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ local unlockList =
"ReplaceEnchant",
"ReplaceTradeEnchant",
"RunMacro",
"C_Macro.RunMacroText",
-- "C_Macro.RunMacroText",
"StartAttack",
"SendChatMessage",
"SetBinding",
Expand Down Expand Up @@ -314,6 +314,10 @@ function br.unlock:NNUnlock()
b.GetDistanceBetweenPositions = Distance
b.GetDistanceBetweenObjects = Distance

b.RunMacroText = function(macro)
return Unlock("C_Macro[\"RunMacroText\"]("..macro..")", "")
end


b.CastSpellByName = function(spellName, unit)
if unit == nil then return CastSpellByName(spellName) end --b.print("No unit provided to CastSpellByName") end
Expand Down

0 comments on commit efae18d

Please sign in to comment.