Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-05-2002, 12:00 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default

I think I know why this bug occurs. It will occur with spells that have a stun component which isn't the primary effect, in this specific case Anarchy has damage as it's main component and the stun as a secondary effect.

The code assumes that the duration of a stun spell is the base value of the first effect in the spell ..

Spells.cpp : Line 577

CastToClient()->Stun(spells[spell_id].base[0]);

For anarchy this value will be -171. What it should be using is the value of base[1] as the stun is the second spell effect. This gives a more reasonable value of '1'.

The reason you get such a long stun is that when -171 is converted to an unsigned number somewhere on the way to the stun function it becomes (assuming a 16 bit value) 65365. That's a 65 second stun!

K.
Reply With Quote
 


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

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

Forum Jump

   

All times are GMT -4. The time now is 11:58 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3