View Single Post
05/18/14, 11:50 AM   #2
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
Originally Posted by ZunaSW View Post
Lua Code:
  1. local function MyEventOnHit(result, isError, abilityName, abilityGraphic, abilityActionSlotType, sourceName, sourceType, targetName, targetType, hitValue, powerType, damageType, log)
  2. end
  3.  
  4. 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?
  Reply With Quote