public virtual bool AllowHarmful(Mobile from, Mobile target) { if (Mobile.AllowHarmfulHandler != null) { return(Mobile.AllowHarmfulHandler(from, target)); } return(true); }
public virtual bool AllowHarmful(Mobile from, IDamageable target) { if (m_Parent != null) { return(m_Parent.AllowHarmful(from, target)); } if (Mobile.AllowHarmfulHandler != null) { return(Mobile.AllowHarmfulHandler(from, target)); } return(true); }
public virtual bool AllowHarmful(Mobile from, Mobile target) { if (Mobile.AllowHarmfulHandler != null) { return(Mobile.AllowHarmfulHandler(from, target)); } return(true); /*if ( (Map.Rules & MapRules.HarmfulRestrictions) != 0 ) * return false; * else * return true;*/ }