PDA

View Full Version : Tactical Mastery AA


Wolftousen
05-10-2010, 03:38 PM
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:

C:\Program Files (x86)\GnuWin32\bin>diff c:\Users\Wolftousen\Documents\fdO.txt c
:\Users\Wolftousen\workspace\EQEmuServer\zone\atta ck.cpp -u
--- c:\Users\Wolftousen\Documents\fdO.txt 2010-05-09 22:52:42.436100000 -0400
+++ c:\Users\Wolftousen\workspace\EQEmuServer\zone\att ack.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!