/// <summary> /// Get object specialization level based on server type /// </summary> /// <param name="player">player whom specializations are checked</param> /// <param name="objectType">object type</param> /// <returns>specialization in object or 0</returns> public virtual int GetBaseObjectSpecLevel(GamePlayer player, eObjectType objectType) { int res = 0; foreach (eObjectType obj in GetCompatibleObjectTypes(objectType)) { int spec = player.GetBaseSpecLevel(SkillBase.ObjectTypeToSpec(obj)); if (res < spec) res = spec; } return res; }