India at the moment is at good ties with China,however,if China goes to war,India will destroy China due to the fact China is alligned to Pakistan which is India's mortal enemy
Just because your friends are enemies doesn't mean you can't be friends with both them.