Actor swap in battle shows "+Death" state upon graphic swap

I'm performing actor swaps in combat with the skill's damage formula, and it shows "+Death" in front of the character once it's applied as if they had died, even though no damage is calculated into the equation. How do I fix this? Anybody know? I've tried setting it to every "Type" of damage. HP/MP damage/recover/drain, and it still shows the "+Death" state on-screen, representing that the first character died(or the new one? idk?) It appears during the half frame there's no actor graphic and passes too quickly for me to SS, LOL. However, it shouldn't be happening because all that's happening is a skill is forcing the actor to swap for another actor for an attack, no one takes damage, so why's that appearing...?
Anybody know how to fix this? 😀
Screenshots included are showing it appearing and the skill page.
Also, the sprites are XP sprites, but this IS, indeed, Ace. I just like XP's sprites.

(Also, mods, this is unrelated to a script. I'm performing this swap solely with the skill's damage formula, which is why I posted it in this section. 🙂 )
the damage formula is not completely visible, can you spell it out?
additionally, what does the common event do? a screeshot of that might help
The first thing that comes to mind is that the actor is being initialized and has 0 HP for a moment before recovering. The refresh method within battler base adds the death state to any battler with 0 HP and it is quite fast.

In the damage formula, I notice that you're removing the only actor in battle before adding another. Try that in reverse.
And as @Andar suggested, we need to see everything that's happening with the skill.
the damage formula is not completely visible, can you spell it out?
additionally, what does the common event do? a screeshot of that might help
Here's the formula:
$game_party.remove_actor(3);$game_party.add_actor(18)

Screenshot attached is the common event. It simply checks for what equipment is on the summoner and puts it onto the summoned character. This works similar to Yuna's summoning abilities in Final Fantasy 10.

The first thing that comes to mind is that the actor is being initialized and has 0 HP for a moment before recovering. The refresh method within battler base adds the death state to any battler with 0 HP and it is quite fast.

In the damage formula, I notice that you're removing the only actor in battle before adding another. Try that in reverse.
And as @Andar suggested, we need to see everything that's happening with the skill.
Well this was simply test battle in the troops section of the database, this character never partakes in combat by himself. Will it add more characters to the party if I tell it to, even if it exceeds the limit? [Edit: No. That slot becomes empty if the formula's reversed.] I've tried it with 2 people, but death still occurs.
test battle in the database contains several shortcuts to prevent the need of starting the game, but sometimes they cause sideeffects - does the same happen if you make a battle ingame instead of the troop test?
test battle in the database contains several shortcuts to prevent the need of starting the game, but sometimes they cause sideeffects - does the same happen if you make a battle ingame instead of the troop test?
Yeah, it leaves the spot empty when tested in game.

Original thread: https://forums.rpgmakerweb.com/threads/actor-swap-in-battle-shows-death-state-upon-graphic-swap.78433/