Jump to content

Possible to get haste DOT information


Brian

Recommended Posts

Is it possible to get actual haste dot information through LUA?  I am playing 3.3.5, and with haste snapshotting, I want to know what I snapshotted.  Also, please do not say to just check when you cast, because it can come down to milliseconds so sometimes that messes up.  I want to know if it's possible to check my debuffs on boss, for example lets say Debuff ID 1234, and get the haste associated with that dot, or ticks per second, or something similiar.  Pseudo code:

 

if (BossHasDebuffA) {
	if(DebuffATicks >= ThreshHold){
		DoNothing;
	} else{
		if(PlayerHasNeededHasteBuffs){
			Cast DebuffA;
		}
	}

} else{
	Cast DebuffA;
}

In this pseudo code, how would I get DebuffATicks without assuming it snapshotted correctly(IE, checking buffs when cast because that is extremely unreliable)

 

Also, how would you get the total time on a debuff rather than time remaining? (Again, I would prefer not checking this when applied and being able to check this whenever)

Link to comment
Share on other sites

"_, _, _, _, _, duration = UnitDebuff('target', 'Corruption',nil,'PLAYER'); print(duration); return duration;

Didn't think duration of UnitDebuff was the full duration ;s

Link to comment
Share on other sites

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...