View Single Post
  #1  
Old 11-21-2008, 05:55 PM
Varkalas D`Lonovan
Fire Beetle
 
Join Date: Jun 2006
Posts: 10
Default GoD: Elemental Agility AA

[zone/attack.cpp, ~line 293]

find:

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

Code:
	//	Magician AA:  Elemental Agility
	//	Applies 2, 5, or 10% damage avoidance
	/////////////////////////////////////////
	uint16 aaPetMod = 0;
	if (defender->IsPet() && defender->GetOwner()->IsClient()) {
		switch (GetAA(aaElementalAgility)) {  // defender->GetOwner()->GetAA(aaElementalAgility) ??
			case 1:
				aaPetMod = 2;
				break;
			case 2:
				aaPetMod = 5;
				break;
			case 3:
				aaPetMod = 10;
				break;
		}
		chancetohit -= chancetohit * aaPetMod / 100;
	}
Reply With Quote