Ranbir will take legal action in shoot case