Is this a bug?

Yes, try using the DexNav to faint your party or reload from a backup save