MZ Make guarding interesting - AoE-Guard

Hi all,

I have searched and searched but couldn't find a solution to my idea: Guard does AoE-Cover, meaning the character that guards takes all the damage from AoE skills.
All I could find is the following for MV:
But that doesn't work in MZ anymore. No idea why. Any other suggestions or ideas? Sounds pretty simple to me but I just can't figure it out.

I use all sorts of VS plugins and have the waves bundle (if necessary).
you could try and give this plugin a shot
You can also just check it in your action sequences for the AoE skills. Make an if/else branch, something like:

IF $gameParty.aliveMembers().some(member => member.isGuard()) (depending on battlesystem might need different check, like .isGuardWaiting() or check the action)
->
TARGET: Current Index (you need to make conditionals or use script form with this to find the actor who's guarding)
MECH: Multipliers (set damage multiplier to $gameParty.aliveMembers().length )
MECH: Action Effect Current Target
ELSE
->
MECH: Action Effect All Targets

EDIT: If there's multiple actors guarding, you can also just roll for random in that action sequence and set the target.

Original thread: https://forums.rpgmakerweb.com/threads/make-guarding-interesting-aoe-guard.180828/