Shanks is still a nice guy. He first makes sure they're not wounded, so as not to be unfair and then he only attacks because Kidd still shows himself to be a senseless murderer. Like Luffy wouldn't have attacked the allies unless they attacked first. That's the difference. Kidd didn't learn anything from Luffy.