How do I change a skill (Read Description)

I have a skill made in the game I'm working on, where when used it aborts the battle. How do I modify it so it can't be used in boss fights?
You need something to tell the engine that you are in a boss battle. The most obvious option would be activating a switch when the battle start and only allowing the player to flee when the said switch is off.
Oh right. Duh.
Thanks a ton

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-change-a-skill-read-description.112524/