Quantcast Event request: UNIT_CAST_SPEED - WoWInterface
Thread Tools Display Modes
02-10-09, 10:42 AM   #1
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 6
Event request: UNIT_CAST_SPEED

Similar to UNIT_ATTACK_SPEED, but for casters.
When my priest gains the buff from Wrath of Air Totem, the cast time return value of GetSpellInfo() is not yet updated when UNIT_AURA('player') fires. Apparently there's a gap between gaining the buff and actually getting the additional haste.
When gaining Heroism, the UNIT_ATTACK_SPEED event fires about 400ms after the UNIT_AURA('player') event. I assume there's an equal gap for spell haste changes.
  Reply With Quote
02-17-09, 09:34 AM   #2
A Frostmaul Preserver
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
Hmm... I'd be interested to know what causes this delay, and if it exists for other buffs. I don't think it can be due exclusively to the processing time of something on the server, or to the latency, but I can't think of another restriction that could cause a 400ms delay.
Is this delay there on purpose?
  Reply With Quote
03-09-09, 05:39 AM   #3
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
Is there really a 400ms delay? That seems longer than necessary. I assume it has something to do with server latency.

While I would advocate something like this, I would propose, for a temporary workaround, some magic with OnUpdate and polling GetSpellInfo(), watching for the cast time to change (maybe with a 2s timeout or so, just in case something went wrong). It wouldn't be the most efficient of algorithms, but I don't anticipate any major CPU overhead in doing this and there isn't really a better way.
It's my turn next.

Shakespeare liked regexes too!
  Reply With Quote

WoWInterface » Developer Discussions » Wish List » Event request: UNIT_CAST_SPEED

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off