PDA

View Full Version : Berserker Dead Aim AA fix


Wolftousen
03-07-2009, 07:10 AM
File: zone/attack.cpp
line: 272

Insert:

//Wolftousen - Add Berserker Dead Aim AA accuracy bonus for throwing
if(skillinuse == THROWING)
{
switch(GetAA(aaDeadAim))
{
case 1:
chancetohit = chancetohit * 105/100;
break;
case 2:
chancetohit = chancetohit * 110/100;
break;
case 3:
chancetohit = chancetohit * 115/100;
break;
}
}

Description: This adds the Berserkers Dead Aim AA to their throwing accuracy. It may not be in the right place in the function, but is in the right function I believe.

Wolftousen
03-07-2009, 08:46 AM
To add to the above for the Rage Volley Discipline to work properly you also need to do the following to the same segment:

//Wolftousen - Add Berserker Dead Aim AA accuracy bonus for throwing
if(skillinuse == THROWING)
{
if(isCasting() && CastingSpellID() == 6754) //if we are casting Rage Volley Discipline, we should always hit with it
{
chancetohit = 1001; //Rage volley is gaurenteed to hit
}
else
{
switch(GetAA(aaDeadAim))
{
case 1:
chancetohit = chancetohit * 105/100;
break;
case 2:
chancetohit = chancetohit * 110/100;
break;
case 3:
chancetohit = chancetohit * 115/100;
break;
}
}
}

Wolftousen
03-08-2009, 02:36 AM
this is actually Line 468 in the latest SVN, the original line number is from the downloaded source on eq emu site.