MV YEP Buffs and States Core Phoenix Ring

Hi I copied the Phoenix Ring code from here: http://www.yanfly.moe/wiki/Phoenix_Ring_(MV_Plugin_Tips_&_Tricks)
Into my Death State and it works as intended except the ring does not break causing my character to be immortal because he keeps getting revived! Is there a way to fix this?

<Custom Apply Effect> if (target.isActor()) { var ring = $dataArmors[377]; if (target.hasArmor(ring)) { target.discardEquip(ring); target.startAnimation(42); var hp = Math.floor(target.mhp * 0.25); target.gainHp(hp); target.startDamagePopup(); } } </Custom Apply Effect>
It doesn't look like a problem with the code, the call to discardEquip() is right there.

Have you done something silly, like put the trait to Lock Equip on that slot someplace? Or used Yanfly's Equip Core to say that slot can't be unequipped?
It doesn't look like a problem with the code, the call to discardEquip() is right there.

Have you done something silly, like put the trait to Lock Equip on that slot someplace? Or used Yanfly's Equip Core to say that slot can't be unequipped?
I only have my ring slot locked for 1 actor but the actor I am testing it with has no restrictions like that
EDIT: Here is my Ring, is there anything else I am missing?

1693078904771.png

Original thread: https://forums.rpgmakerweb.com/threads/yep-buffs-and-states-core-phoenix-ring.160650/