Page 1 of 1
lightning strike
Posted: Sun Dec 09, 2007 3:41 pm
by d.
im wondering if anyone could tell me the equation for the chance of lightning strike doing a critical shot. ty
Archived topic from AOV, old topic ID:1836, old post ID:11870
lightning strike
Posted: Sun Dec 09, 2007 4:26 pm
by Red Squirrel
Looks like critical strike is basically armor ignore, this is a bool that determines if a special shot ignores armor:
Code: Select all
public override bool IgnoreArmor( Mobile attacker )
{
double bushido = attacker.Skills[SkillName.Bushido].Value;
double criticalChance = (bushido * bushido) / 72000.0;
return ( criticalChance >= Utility.RandomDouble() );
}
Archived topic from AOV, old topic ID:1836, old post ID:11878