EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Multi-rank AA redux fix (Radiant Cure mostly) (https://www.eqemulator.org/forums/showthread.php?t=36417)

demonstar55 02-05-2013 12:20 AM

Multi-rank AA redux fix (Radiant Cure mostly)
 
So I tried to fix this before and realized I was wrong, so ignore the previous thread

Code:

Index: EQEmuServer/zone/AA.cpp
===================================================================
--- EQEmuServer/zone/AA.cpp        (revision 2481)
+++ EQEmuServer/zone/AA.cpp        (working copy)
@@ -1348,7 +1348,8 @@
 
        if(value > 0)
        {
-                const AA_DBAction *caa = &AA_Actions[saa->id][value - 1];
+        // AA_Actions needs the base ID
+                const AA_DBAction *caa = &AA_Actions[saa->id - value + 1][value - 1];
 
                if(caa && caa->reuse_time > 0)
                        saa->spell_refresh = CalcAAReuseTimer(caa);

I didn't notice any errors with other AAs. Still need to camp to get the timers to update after buying the redux AA (something you always had to do)


All times are GMT -4. The time now is 08:18 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.