Thread Tools Display Modes
09/14/16, 06:25 AM   #1
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
Need help to track if player has active dur. ability during (onCombatEvent function)

Hey there, I'm doing some modifications to LUI atm, and I've managed to successfully make a fake debuff tracker that tracks certain debuffs without an active effect display like mob Hamstrung attacks.

However the duration is based off the ability ID, and if I purge the ability (which is also correctly removing the debuff from display), the duration of all debuffs applied in the next 6 seconds is cut in half, so if this fake debuff is applied again, it does not show the proper halved duration.

Is there some way to check and see if there is an active effect based on abilityId currently active on the player? I need to implement this check into the onCombatEvent function ideally.

If I can figure out how to do that then I can have two statements:

if source ~= "" and target == playerName then
*draw buff at normal duration*
if source ~= "" and target == playerName & (PURGE ABILTIYID IS ACTIVE ON PLAYER) then
*draw buff at half duration*

Thanks!
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Need help to track if player has active dur. ability during (onCombatEvent function)


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