What have others found to be the best method for optimizing their characters skills usage whether it be for DPS or for HPS?
I was looking at the various events that are fired during a spell cast (UNIT_SPELLCAST_SENT -> UNIT_SPELLCAST_START -> UNIT_SPELLCAST_SUCCEEDED -> UNIT_SPELLCAST->STOP) and the associated time in milliseconds between these events to see if there is a clear indicator of when I can start cast the second spell, but not really. SPELL_UPDATE_USABLE might work but the problem is that it isn't tied to a specific spell or unit/player so there is no way to know who and what the event is associated too.
Anyways, I guess my real question is, is there a better method for maximizing skill usage other than:
My problem with the above is that networkLag is only updated once every 30 seconds, but I think the server allows you to pre-cast a 2nd spell before the cooldown is up officially within the lag threshold. I wonder if you can even go faster than that.Code:double nextCastTime = currentTime + spellCastTime - networkLag;
Additionally, I added a check for the event UNIT_SPELLCAST_DELAYED (this occurs when your cast time is pushed back as a result of getting hit while casting) which increments nextCastTime by +0.5 seconds.
Anyone able to offer any suggestions to improve this method?