// works like DCI, etc. public static int Dodge(Mobile defender) { int total = 0; if (HasteSpell.IsHasteed(defender)) { total += 20; } if (SlowSpell.IsSlowed(defender)) { total -= 20; } if (BlindSpell.IsBlinded(defender)) { total -= 50; } return(total); }
//<**Melee**> // works like HCI, etc. public static int Hit(Mobile attacker) { int total = 0; if (HasteSpell.IsHasteed(attacker)) { total += 20; } if (SlowSpell.IsSlowed(attacker)) { total -= 20; } if (BlindSpell.IsBlinded(attacker)) { total -= 50; } return(total); }