srazdokunebil 6 Posted December 24, 2019 Share Posted December 24, 2019 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() Vanilla WoW Wiki states that expirationTime is a valid return. Fandom (as of Dec 2016) does not. 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 More sharing options...
Matenia 628 Posted December 24, 2019 Share Posted December 24, 2019 (edited) 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 December 24, 2019 by Matenia Link to comment https://wrobot.eu/forums/topic/11769-extracting-time-left-on-debuffs-in-1121/#findComment-56484 Share on other sites More sharing options...
srazdokunebil 6 Posted December 24, 2019 Author Share Posted December 24, 2019 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! Link to comment https://wrobot.eu/forums/topic/11769-extracting-time-left-on-debuffs-in-1121/#findComment-56485 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now