Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:16 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3