How to stop random god mode.

Hello all, First post, Weird question.

During battle testing, both my actors and the enemy will just randomly become unkillable.

The actors' health bars will go red and will not go down despite being hit, (Using MOG_battlehub)
Enemy will simply just not go down despite being hit well above their HP.

I checked my plugins and none mention any god mode of the sort,
Any suggests will be of great help.
see if there's any action adding a state that shields the target from receiving a death state.
there might be an issue with one of your damage formulas
if something gives an error, it'll return NaN for damage, which, when tried to subtract from HP, will return NaN for that too. Since NaN isn't 0, and anything minus NaN won't be, they will never die.

if you're using MV you can also open the console with F8, which will likely print an error regarding the damage formula when the actor becomes unkillable.
It might be worth double checking that you haven't turned on god mode in playtesting. Unlikely, but worth leaving no stone unturned.
there might be an issue with one of your damage formulas
All of the suggestions here are good to check out, but I think this is the best bet. Having a bungled damage formula can screw up combat in very weird ways.
Thank you all for the advice.

So one of the plugins was causing the problem. It was suppose to allows you to use HP instead of MP for some moves.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-stop-random-god-mode.156449/