Originally Posted by ZunaSW
Lua Code:
local function MyEventOnHit(result, isError, abilityName, abilityGraphic, abilityActionSlotType, sourceName, sourceType, targetName, targetType, hitValue, powerType, damageType, log) end EVENT_MANAGER:RegisterForEvent(name, EVENT_COMBAT_EVENT, MyEventOnHit)
|
In the code you posted you have a local function that does nothing, because there is nothing written between "function" and "end" and a global function with the very same name.
What result do you expect?