December 24, 20196 yr 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?
December 24, 20196 yr 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, 20196 yr by Matenia
December 24, 20196 yr Author 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