Core/Handlers: Add inspect distance and target checks

https://github.com/TrinityCore/TrinityCore/commit/abb97bac18d4d38feacad37a3f60e79dd3b9606c