Improved 4faddb3ae49be8f5b2066ab99f55ffa4684b8e1c by adding check if player is not dead and check if player is near