public static bool TSystem_AllowHarmful(Mobile from, Mobile target) { if (StaticRef != null) { if (StaticRef.Started) { if (StaticRef.IsParticipant(from) || StaticRef.IsParticipant(target)) { if (StaticRef.AreOpponents(from, target)) { return(true); } else { return(false); } } } } #region Dueling System if (DuelCore.Enabled && from != target) { Duel fDuel = DuelCore.FindActiveDuel(from); Duel tDuel = DuelCore.FindActiveDuel(target); if (fDuel != null || tDuel != null) { return(fDuel == tDuel); } } #endregion return(NotorietyHandlers.Mobile_AllowHarmful(from, target)); }
public static bool TSystem_AllowHarmful(Mobile from, Mobile target) { if (StaticRef != null) { if (StaticRef.Started) { if (StaticRef.IsParticipant(from) || StaticRef.IsParticipant(target)) { if (StaticRef.AreOpponents(from, target)) { return(true); } else { return(false); } } } } return(NotorietyHandlers.Mobile_AllowHarmful(from, target)); }