Jump to content

Recommended Posts

Is it possible to obtain the time left for a debuff applied to a mob using Lua code (or other means) in vanilla 1.12.1?

I've found some conflicting information for UnitDebuff()

I am aware that the C# WRobot function BuffTimeLeft() is explicitly not supported in the 1.12.1 version.  However;  since the client displays debuff countdown timers on the debuff icons, that info is definitely encapsulated in the client.    Does any one have a method to extract it?

 

 

Link to comment
https://wrobot.eu/forums/topic/11769-extracting-time-left-on-debuffs-in-1121/
Share on other sites

It only works on the player. Just look into any actual 1.12 addon that uses those timers.

Enemyframes, LoseControl, you name it.

https://github.com/0ldi/LoseControl/blob/master/LoseControl/LoseControl.lua

Edited by Matenia

Good 'ol wacky vanilla API.  I suppose the most reliable method would be to use an event handler to countdown time since the last application of the debuff.  I was wondering if you had a trick under your sleeve-- Thanks for the confirmation and the code example, Matenia.

Happy Festivus!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...