Recover HP in % for Battle Members

Hello everyone,
I want to restore the HP of the active group (battle members) by 20%.
I found a this code (for 10%) on another treath but this is for RPG Maker VXAce and its not working:

$game_party.members.each do |m| m.hp += (m.mhp * 0.10).to_i

What is the code for RPG Maker MV?
Code:
$gameParty.members().forEach(actor => actor.gainHp(actor.mhp/10));

If you're outside of battle and you still only want to affect the battle members, use battleMembers instead of members.
You'd also want to convert to an integer before feeding it to gainHp, e.g.
JavaScript:
actor.gainHp(Math.floor(actor.mhp/10))
(Math.floor returns the closest integer equal or less than the input. I'm not sure exactly what kind of conversion Ruby's .to_i does.)
"battleMembers"
small change but that's what I was looking for.
Thank you
Sorry for a new post, but Is it possible to change the code, that dead battle members not be revived?

Original thread: https://forums.rpgmakerweb.com/threads/recover-hp-in-for-battle-members.162306/