MV How can I make Yanfly's Extended DoT NOT be able to kill?

I would like it to work like the engine's default slip damage, leaving battlers at 1 HP rather than outright killing them if the slip damage is high enough.
Perhaps you could use Math.min to cap the damage at battler's remaining hp - 1?
Added
Code:
value = Math.max((this.hp - 1) * -1, value);
under line 339, and I think that did the job perfectly. Thank you for the help!

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-yanflys-extended-dot-not-be-able-to-kill.166407/