I've been playtesting my game, and I noticed that, during a battle where the Player is supposed to lose, the Phoenix Ring from Yanfly's Tips and Tricks (http://yanfly.moe/?s=phoenix+ring) keeps bringing the Player back to life, even after the ring was supposed to "break". I've updated everything I can think of, rewatched the video several times to see if I've missed something, and this still happens.
Here's the code I used:
<Custom Apply Effect>
if (target.isActor()) {
var ring = $dataArmors[79];
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>
79 is the slot where I put this ring. What am I doing wrong?
Here's the code I used:
<Custom Apply Effect>
if (target.isActor()) {
var ring = $dataArmors[79];
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>
79 is the slot where I put this ring. What am I doing wrong?


