EQEmulator Forums

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

Vanicae 10-10-2010 07:16 PM

COMMITTED: Tactical Mastery (Warrior AA)
 
Small addition for the tactical mastery AA.

I've been unable to find any information on what percent chance the AA gives to strikethrough, so it uses the same values as the monk equivalent. I think that is better than it doing nothing at all.


Code:

Index: attack.cpp
===================================================================
--- attack.cpp        (revision 1701)
+++ attack.cpp        (working copy)
@@ -1306,6 +1306,18 @@
                        aaStrikethroughBonus = 6;
                        break;
                }
+                switch (GetAA(aaTacticalMastery))
+                {
+                case 1:
+                        aaStrikethroughBonus = 2;
+                        break;
+                case 2:
+                        aaStrikethroughBonus = 4;
+                        break;
+                case 3:
+                        aaStrikethroughBonus = 6;
+                        break;
+                }
                if (((damage < 0) || slippery_attack) && !bRiposte && !IsStrikethrough) { // 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!


Van


All times are GMT -4. The time now is 11:30 PM.

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