Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-29-2012, 06:20 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default COMMITTED: AA reset timer on failed casts.

For some reason shorter reuse timer AAs (Divine Arbiration, Wrath of the Wild) were not being reset on failed casts (interrupts)

Code:
Index: AA.cpp
===================================================================
--- AA.cpp      (revision 2196)
+++ AA.cpp      (working copy)
@@ -288,7 +288,11 @@
                        }

                        if(!CastSpell(caa->spell_id, target_id, 10, -1, -1, 0, -1, AATimerID + pTimerAAStart, timer_base, 1))
-                                       return;
+                       {
+                               // Reset the timer on an AA if it failed to cast for some reason (interrupt)
+                               p_timers.Clear(&database, AATimerID + pTimerAAStart);
+                               return;
+                       }
                }
                else
                {

Last edited by cavedude; 09-13-2012 at 01:47 PM..
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 09:11 PM.


 

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