Core/SmartAI: improved 4faddb3ae49be8f5b2066ab99f55ffa4684b8e1c

Adds check if player is not dead and check if player is near