MZ Common event not triggering after Skill use.

I have a system where a skill uses an item (a vial of holy water) as a resource when you use it (I use Visustella's Skills and Stats Core, that works just fine). After using it, the player should get an empty vial back. But it doesn't work on the first use, only the uses after. So, I have ten vials of holy water, I use three, but I only get two empty vials back, and I have seven vials of holy water remaining.

The skill calls up a common event that just gives me 1 Empty Vial. I have tried reworking this common event so many times, same issue. I have tried making variables, turning on switches, putting commands in the troops tab, no luck.

I just don't understand why it fails the first time and only the first time.
please show screenshots of the skill, the common event, and provide the notebox content if it cant be contained by the screenshot. without seeing what youve done, all anyone can do to help you is guess at what you did.
Here's the skill and the common event. And also my inventory after I fought something. I used three holy waters but I only got back two vials.
Inventory.png
are you certain that its the first use of the skill thats not refunding the item and not the last? it should be the case that killing the last enemy of a troop with that skill would end the fight before playing the common event.

Edit: alternatively, you can add a show text command to see exactly when its runs
Oh, right! I completely forgot about making the troop immortal to play any common event upon the enemy's death! It's been a few months since I worked with RPG Maker, that slipped my mind. It works now, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/common-event-not-triggering-after-skill-use.181621/