public static double GetParryBonus(Mobile m) { HeightenedSensesSpell spell = GetSpell(m, typeof(HeightenedSensesSpell)) as HeightenedSensesSpell; if (spell != null) { return(spell.PropertyBonus() / 100.0); } return(0); }
public override bool CheckCast() { HeightenedSensesSpell spell = GetSpell(Caster, GetType()) as HeightenedSensesSpell; if (spell != null) { spell.Expire(); return(false); } if (!HasShieldOrWeapon()) { return(false); } return(base.CheckCast()); }