PDA

View Full Version : COMMITTED: Mastery of the Past fix


garim12
01-18-2010, 08:58 PM
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.


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 :)