public override bool Cast() { CombatTrainingSpell spell = GetSpell(Caster, typeof(CombatTrainingSpell)) as CombatTrainingSpell; if (spell != null) { spell.Expire(); return(false); } return(base.Cast()); }
public override bool CheckCast() { CombatTrainingSpell spell = GetSpell(Caster, typeof(CombatTrainingSpell)) as CombatTrainingSpell; if (spell != null) { spell.Expire(); return(false); } if (Caster is PlayerMobile && ((PlayerMobile)Caster).AllFollowers == null || ((PlayerMobile)Caster).AllFollowers.Count == 0) { Caster.SendLocalizedMessage(1156112); // This ability requires you to have pets. return(false); } return(base.CheckCast()); }