PDA

View Full Version : Support for defensive Instinct and Reflexive Mastery AA.


LordKahel
03-13-2008, 01:51 PM
Simple code change to support those 2 defensive AAs that can be bought.

Both changes are in attack.cpp

in Mob::CheckHitChance

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


and in Mob::MeleeMitigation


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


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.