Change enemy traits during battle

Hey there and happy new year (lol)
I was wondering if there's a way to change an enemy traint during battle.
Let's say I have an enemy that is weak to fire, but after it reaches 25% HP, it becomes resistant to fire.
Is there any way to do so during battle?
Thanks in advance.
Traits are meant to be permanent. The way to do what you want to do is the following:

At start of the battle: Add to the enemy a state which makes it weak to fire.
When the enemy is < 25% HP, remove that state, add another state which makes it resistant to fire.

Both can be done with troop events.

Original thread: https://forums.rpgmakerweb.com/threads/change-enemy-traits-during-battle.89231/