Stop Ai chasing player after ai death

been stuck on this for days! thanks veccher