Event_combat_event
Hello to all,
i'm trying to make a very very simple addon for testing reasons, that simply shows me which mob is attacking me and what skill it uses.
For some reason the EVENT_COMBAT_EVENT is only showing always me as SOURCE and only shows the skills i'm using instead of the enemy mob as well. Anyone has any idea why it shows only my attacks and not the enemie's (NPC mob in my case)?
Thank you very much for your time.
Part of my code is this:
EVENT_MANAGER:RegisterForEvent( "tlw" , EVENT_COMBAT_EVENT , MyEventOnHit )
local function MyEventOnHit( eventCode , result , isError , abilityName, abilityGraphic, abilityActionSlotType, sourceName, sourceType, targetName, targetType, hitValue, powerType, damageType, log )
lblCounter:SetText(sourceName..":"..abilityName)
end
|