Making an enemy not give any exp if they're afflicted with a specific state?

I'm trying to make a system where, in a room there is a specific troop that corresponds to the enemies inside, you can eliminate other enemies in the room, and they won't be able to be summoned by their allies, the troops are evented to immediately inflict the default death state on the enemy that was previously defeated, however, this seems to still yield the exp that would otherwise have been gained from defeating all enemies.

Original thread: https://forums.rpgmakerweb.com/threads/making-an-enemy-not-give-any-exp-if-theyre-afflicted-with-a-specific-state.168675/