EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Tactical Mastery AA (https://www.eqemulator.org/forums/showthread.php?t=31272)

Wolftousen 05-10-2010 03:38 PM

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!



All times are GMT -4. The time now is 06:38 PM.

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