How to define a actor that normal cure action is invalid?

Hello. I meet one question like this: one of my actor is "machine" type that cann't be cured by other actor's normal cure action. How could i do for it easily? Any plugin or coding with js are both optional. Thank you!
Does it work if you put damage formula for HP recovery (change X to id of your actor who can't be cured):

b.actorId()==X ? 0 : 100
I solve the problem by add an invisible state called "machine", set recovery effect to 0%, and put it to my actor. It works and when I need to use some special item to cure the machine actor, it is only need to remove this state, cure actor and put state on him again. Thank for your help.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-define-a-actor-that-normal-cure-action-is-invalid.167270/