buffs, like items have to have exact spelling....I think it is typed as sprainedLeg...with leg capitalized.
Unless you just never capitalized it in the post but did in your command.
On related note, has anyone made a list of things in game such as a list of items, buffs, blocks, etc with the way they have to be spelled to be used in commands.