View Single Post
  #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