public static BlockMountType GetMountPrevention(Mobile mob, BaseMount mount) { if (mob == null) { return(BlockMountType.None); } BlockEntry entry = null; if (m_Table.ContainsKey(mob)) { entry = m_Table[mob]; } if (entry == null) { return(BlockMountType.None); } if (entry.IsExpired(mount)) { return(BlockMountType.None); } if (Core.TOL && entry.m_Type >= BlockMountType.RidingSwipe && entry.m_Expiration > DateTime.UtcNow) { return(BlockMountType.DismountRecovery); } return(entry.m_Type); }
public static BlockMountType GetMountPrevention(Mobile mob, BaseMount mount) { if (mob == null) { return(BlockMountType.None); } BlockEntry entry = null; if (m_Table.ContainsKey(mob)) { entry = m_Table[mob]; } if (entry == null) { return(BlockMountType.None); } if (entry.IsExpired(mount)) { return(BlockMountType.None); } return(entry.m_Type); }