View Single Post
  #1  
Old 05-10-2010, 03:38 PM
Wolftousen
Sarnak
 
Join Date: Apr 2008
Posts: 49
Default Tactical Mastery AA

The Tactical Mastery AA that allows Warriors and Berserkers to strike through is not implemented, yet it is for monks (called Strikethrough for them).

Fix Diff - rev 1473 zone/attack.cpp:

Code:
C:\Program Files (x86)\GnuWin32\bin>diff c:\Users\Wolftousen\Documents\fdO.txt c
:\Users\Wolftousen\workspace\EQEmuServer\zone\attack.cpp -u
--- c:\Users\Wolftousen\Documents\fdO.txt       2010-05-09 22:52:42.436100000 -0400
+++ c:\Users\Wolftousen\workspace\EQEmuServer\zone\attack.cpp   2010-05-10 01:49:54.190150000 -0400
@@ -1227,19 +1227,18 @@
                }

                //strikethrough..
-               int aaStrikethroughBonus = 0;
-               switch (GetAA(aaStrikethrough))
+
+               int aaStrikethroughBonus;
+
+               if(GetAA(aaStrikethrough) > 0) //monks
                {
-               case 1:
-                       aaStrikethroughBonus = 2;
-                       break;
-               case 2:
-                       aaStrikethroughBonus = 4;
-                       break;
-               case 3:
-                       aaStrikethroughBonus = 6;
-                       break;
+                       aaStrikethroughBonus = GetAA(aaStrikethrough) * 2;
                }
+               else if(GetAA(aaTacticalMastery) > 0) //warriors and berserkers
+               {
+                       aaStrikethroughBonus = GetAA(aaTacticalMastery) * 2;
+               }
+
                if (((damage < 0) || slippery_attack) && !bRiposte) { // Hack to still allow Strikethrough chance w/ Slippery Attacks AA
                        if(MakeRandomInt(0, 100) < (itembonuses.StrikeThrough +spellbonuses.StrikeThrough + aaStrikethroughBonus)) {
                                Message_StringID(MT_StrikeThrough, STRIKETHROUGH_STRING); // You strike through your opponents defenses!
Reply With Quote