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
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