Reply
 
Thread Tools Display Modes
Old 02-10-09, 09:42 AM   #1
Tifi
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.
Tifi is offline   Reply With Quote
Old 02-17-09, 08:34 AM   #2
Layrajha
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?
Layrajha is offline   Reply With Quote
Old 03-09-09, 05:39 AM   #3
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 816
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!
/(bb|[^b]{2})/
Shirik is offline   Reply With Quote
Reply

Go BackWoWInterface » 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