Unfortunately it does not seem to cover it
After a bit more experimentation, I believe its not entirely to do with d() and perhaps my lack of understanding, but here is my code
I'm expecting when I enter/exit combat for stuff to appear in chat
here is my attempt at code
Lua Code:
function Initialise()
EVENT_MANAGER:RegisterForEvent("TestAddon1", EVENT_PLAYER_COMBAT_STATE, combatStatusChanges)
end
function combatStatusChanges()
-- literally anything sould cause it to debug output
d("help me")
end
function addOnInit(event, addonName)
if addonName == "TestAddon1" then
Initialise()
end
end
EVENT_MANAGER:RegisterForEvent("TestAddon1", EVENT_ADD_ON_LOADED, addOnInit)