After killing all pillagers in an outpost (except for the captain) in creative, I switched to survival. The captain failed to attack me, even when I attacked it. The effect appeared to be exclusive to the captain, as a regular pillager I missed in creative attacked me as soon as I entered survival. Bad Omen was still applied after I killed the captain.
Linked issues
duplicates
Comments

Thank you for your report!
We're tracking this issue in MCPE-44987, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki