|
Calculate
public static int CalculateCriticalStrike
public static int CalculateBreaktrough
public static int CalculateSkillCStrike
public static int CalculateSkillCStrike(Entity AttackerClient, Entity AttackedClient, int damage)
{
if (AttackerClient.SkillCStrike == AttackedClient.Immunity)
return damage;
if (AttackerClient.SkillCStrike > AttackedClient.Immunity)
{
int Power = (int)(AttackerClient.SkillCStrike - AttackedClient.Immunity);
damage = (int)((double)damage * 1.100);
}
return damage;
}
public static int CalculateCriticalStrike(Entity AttackerClient, Entity AttackedClient, int damage)
{
if (AttackerClient.CriticalStrike == AttackedClient.Immunity)
return damage;
if (AttackerClient.CriticalStrike > AttackedClient.Immunity)
{
damage = (int)((double)damage * 1.100);
}
return damage;
}
public static int CalculateBreaktrough(Entity AttackerClient, Entity AttackedClient, int damage)
{
if ((AttackerClient.Breaktrough == AttackedClient.Counteraction) || AttackerClient.Class >= 130 && AttackerClient.Class <= 135)
return damage;
if (AttackerClient.Breaktrough > AttackedClient.Counteraction)
{
int Power = (int)(AttackerClient.Breaktrough - AttackedClient.Counteraction);
damage = (int)((double)damage * 0.900);
}
return damage;
}