View Single Post
  #1  
Old 01-18-2010, 08:58 PM
garim12
Fire Beetle
 
Join Date: Oct 2004
Location: Tampa, FL
Posts: 19
Default 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;
Reply With Quote