public static int GetHPBonus(Mobile m) { ToughnessSpell spell = GetSpell(m, typeof(ToughnessSpell)) as ToughnessSpell; if (spell != null) { return(spell._HPBonus); } return(0); }
public override bool CheckCast() { if (!CheckWeapon()) { Caster.SendLocalizedMessage(1155983); // You must have a mace weapon equipped to use this ability! return(false); } ToughnessSpell spell = GetSpell(Caster, this.GetType()) as ToughnessSpell; if (spell != null) { spell.Expire(); return(false); } return(base.CheckCast()); }