int BGRole;
double DMGDone, DMGSoaked, DMGAbsorbed, HealingDone, TotalDMG, TotalABS, TotalSoak, TotalHeal, BGHonor;
// Values for Damage Done, Damage Taken, Damag Absorbed & Healing Done are taken from the battleground stats in the end of the battleground //
if (HealingDone || DMGAbsorbed > DMGDone) BGRole = 1;
else if (DMGDone > HealingDone && DMGAbsorbed && DMGSoaked ) BGRole = 2;
else if (DMGDone && DMGSoaked > HealingDone DMGAbsorbed ) BGRole = 3;
else if (DMGSoaked > DMGDone && HealingDone && DMGABsorbed ) BGRole = 4;
// BGRole 1 == Healer
// BGRole 2 == Ranged DPS
// BGRole 3 == Melee DPS
// BGRole 4 == PVP Tank
if (BGRole = 1)
{
double HealPercentage;
HealPercentage = ((HealingDone / TotalHeal) * 100%) + ((DMGAbsorbed / TotalABS) * 100%);
if (HealPercentage >= 25%)
{
HealPercentage = 25%;
BGHonor = BGHonor + BGHonor * HealPercentage;
}
else BGHonor = BGHonor + BGHonor * HealPercentage;
};
//If the overall healing and/or absorbs of the healer are greater than 25% of the total heals and absorbs for the team, they are automatically counted down to 25% as that is the maximum bonus of honor you can receive. If they are lower than 25%, you receive whatever % you have as a battleground bonus for participating as a healer//
if (BGRole = 2)
{
double RDPSPercentage;
RDPSPercentage = ((DMGDone / TotalDMG) * 100% - ((DMGSoaked / TotalSoak) * 100%)/4);
if (RDPSPercentage >= 25%)
{
RDPSPercentage = 25%;
BGHonor = BGHonor + BGHonor * RDPSPercentage;
}
else BGHonor = BGHonor + BGHonor * RDPSPercentage;
};
//If the overall damage of the ranged DPS is greater than 25% of the total of the of the team, they are automatically counted down to 25% as that is the maximum bonus honor you can receive. You lose 25% of your total soaked damage as the formula will reward you to stand in a distance and keep yourself in range from melees or kiting other ranged//
if (BGRole = 3)
{
double MDPSPercentage;
MDPSPercentage = ((DMGDone / TotalDMG) * 100% + ((DMGSoaked / TotalSoak) * 100%)/4);
if (MDPSPercentage >= 25%)
{
MDPSPercentage = 25%;
BGHonor = BGHonor + BGHonor * MDPSPercentage;
}
else BGHonor = BGHonor + BGHonor * MDPSPercentage;
};
//If the overall damage of a melee DPS is greater than 25% of the total of the team, they are automatically counted down to 25% as that is the maximum bonus honor you can receive. You gain 25% of your total soaked damage as the formula will reward you for going into the combat to deal damage as a melee and by doing so, taking damage from other damage dealers as well//
if (BGRole = 4)
{
double TANKPercentage;
TANKPercentage = ((DMGSoaked / TotalSoak) * 100 + ((DMGAbsorbed / TotalABS) * 100%)/8 + ((DMGDone / TotalDMG)*100%)/8);
if (TANKPercentage >= 25%)
{
TANKPercentage = 25%;
BGHonor = BGHonor + BGHonor * TANKPercentage;
}
else BGHonor = BGHonor * TANKPercentage;
};
//If the overall damage soaked of a TANK is greater than 25% of the total for the team, they are automatically counted down to 25% as that is the maximum bonus honor you can receive. You gain one eight of the your total absorbed damage as bonus as well as an eight of your total damage done as protection paladins utilize shields that cause them to absorb damage//