Thread Tools Display Modes
Prev Previous Post   Next Post Next
07/09/21, 10:16 AM   #1
DoonerSeraph
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 4
Unhappy EVENT_COMBAT_EVENT for companion skills - Missing data

So, while trying to add a cooldoown tracking to a companion addon, I stumbled on the following issue.
It seems that the API does not send he full data for a EVENT_COMBAT_EVENT when the source is a companion.

This is a test with my Twilight Matriarch hitting a Betty Netch.

[13:02] abilityId[117321] AbilityName[Twilight Matriarch] sourceName[Twilight Matriarch] TargetName[Betty Netch] result[1] abilityActionSlotType[0]
[13:02] sourceType[2] targetType[0] sourceUnitId[31833] targetUnitId[53562]

This is Mirri Elendis hitting another Betty with Shadow Slash

[13:08] abilityId[156182] AbilityName[Shadow Slash] sourceName[] TargetName[] result[1] abilityActionSlotType[0]
[13:08] sourceType[0] targetType[0] sourceUnitId[0] targetUnitId[52720]

We can see that the sourceUnitId is 0 in this case. Upon doing some research, I can understand the the unitId is only tracked for the player and the pets belonging to that player, to avoid DPS-tracking addons without consent, which is fine by me.

But is it possible at all to capture the source unitId for my own companions like we can do with pets? Even though companions are not pets per se, we manage them kinda like one in combat. Without this data, it is impossible to differentiate a Shadow Slash cast by my Mirri Elendis and some other person's Mirri, since the ability Id is the same and the source unitId would be 0, so when someone casts their Shadow Slash, my addon understands that my Shadow Slash skill is on cooldown, even when it is'nt.

Any ideas on how that can be solved? Thanks!
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » EVENT_COMBAT_EVENT for companion skills - Missing data


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off