View Single Post
  #1  
Old 03-13-2008, 01:51 PM
LordKahel
Fire Beetle
 
Join Date: Sep 2007
Posts: 22
Default 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
Reply With Quote