EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: Mastery of the Past fix (https://www.eqemulator.org/forums/showthread.php?t=30351)

garim12 01-18-2010 08:58 PM

COMMITTED: Mastery of the Past fix
 
I bought Mastery of the Past AA with my ranger and still fizzle on level 9 spells... Not sure I have the right diff format, but here goes. All I did was update the check to include the code for "aaMasteryofthePast2", which is the ranger / beastlord one. I figured that since you can't have both of these, that adding them in the switch was the fastest solution.

Code:

Index: spells.cpp
===================================================================
--- spells.cpp        (revision 119)
+++ spells.cpp        (revision 128)
@@ -527,9 +527,10 @@
        // GMs don't fizzle
        if (GetGM()) return(true);
       
-        int no_fizzle_level = 0;
-        if (GetAA(aaMasteryofthePast)) {
-                switch (GetAA(aaMasteryofthePast)) {
+        int no_fizzle_level = 0;
+        //GARIM12 : aaMasteryofthePast2 is the version Rangers and Beastlords get...
+        if (GetAA(aaMasteryofthePast) || GetAA(aaMasteryofthePast2)) {
+                switch (GetAA(aaMasteryofthePast) + GetAA(aaMasteryofthePast2)) {
                        case 1:
                                no_fizzle_level = 53;
                                break;


Derision 01-19-2010 02:38 PM

Committed in Rev1124, thanks :)


All times are GMT -4. The time now is 12:46 PM.

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