The signature for my hook is as follows:
Code: Select all
onAttack = function(party, champion, weapon)
...
end
Code: Select all
onAttack(self, champion, action, slot)
Does anybody know which signature I am supposed to use? In the second one, the one listed in the scripting reference, I can't figure out what is in the action parameter. Calling type(action) returns 'table' but when I try the following:
Code: Select all
for key,value in pairs(action) do
hudPrint(key, value)
end
Any help would be appreciated.
Thanks.