public override bool OnSkillUse(Mobile m, int Skill) { Duel duel; if (DuelCore.CheckDuel(m, out duel)) { return(duel.SkillAllowed(Skill)); } return(true); }
public override bool OnBeginSpellCast(Mobile m, ISpell s) { Duel duel; if (DuelCore.CheckDuel(m, out duel)) { return(duel.SpellAllowed(s)); } return(true); }
public virtual bool HasCurrentDuel() { List <Mobile> mobiles = GetMobiles(); for (int i = 0; i < mobiles.Count; i++) { if (DuelCore.CheckDuel(mobiles[i])) { return(true); } } return(false); }