EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Support for defensive Instinct and Reflexive Mastery AA. (https://www.eqemulator.org/forums/showthread.php?t=24637)

LordKahel 03-13-2008 01:51 PM

Support for defensive Instinct and Reflexive Mastery AA.
 
Simple code change to support those 2 defensive AAs that can be bought.

Both changes are in attack.cpp

in Mob::CheckHitChance
Code:

        AA_mod += 3*GetAA(aaPhysicalEnhancement);
        AA_mod += 2*GetAA(aaLightningReflexes);
        AA_Mod += GetAA(aaReflexiveMastery);
        chancetohit -= chancetohit * AA_mod / 100;

and in Mob::MeleeMitigation

Code:

        totalMit += GetAA(aaPhysicalEnhancement)*2;
        totalMit += GetAA(aaInnateDefense);
        totalMit += GetAA(aaDefensiveInstincts)*0.5;

        if(RuleB(Combat, UseIntervalAC)){

in both case just add the bold line.


--
Kahell/Pyronis
Dev Jest 3 Server

So_1337 03-31-2008 01:59 AM

Very nice. Should get these AAs working without too much extra hassle :)

LordKahel 04-09-2008 03:38 PM

Correction for reflexive mastery

Code:

        AA_mod += 3*GetAA(aaPhysicalEnhancement);
        AA_mod += 2*GetAA(aaLightningReflexes);
        AA_mod += GetAA(aaReflexiveMastery);
        chancetohit -= chancetohit * AA_mod / 100;

Changed AA_Mod to AA_mod

Scorpious2k 06-19-2008 10:57 AM

This is now in version 1115.


All times are GMT -4. The time now is 01:46 AM.

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