I made it like this......
PHP Code:
if (ChanceSuccess((float)attacker.Breaktrough / 100f))
{
if (attacked.EntityFlag == EntityFlag.Player)
{
if (attacked.Counteraction == 0)
{
Damage = (Int32)Math.Floor((float)Damage * 2.5);
Packet.Effect1 |= Attack.AttackEffects1.Penetration; // this thing here is the effect of breakthrough i just called it penetration I can rename it if I want to Breakthrough just lazy to do it :)
}
else
{
Damage = (Int32)(Math.Floor((float)Damage * 2.5) - Math.Floor((float)Damage * attacked.Counteraction / 100f));
}
}
}
Quote:
if (ChanceSuccess((float)attacker.CriticalStrike / 100f))
{
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
Damage = (Int32)Math.Floor((float)Damage * 1.2);
if (attacked.EntityFlag == EntityFlag.Player)
Damage -= (Int32)Math.Floor(Damage * attacked.Immunity / 100f);
}







