MV Change enemy pose based on aborption barrier

Goal: Have armoured enemy sprite change to armourless enemy sprite when absorption barrier is depleted.

I am using Yanfly's absorption barrier, and weak enemy poses plug-ins. How do I acheive my goal stated above?
I have moved this thread from RPG Maker MV Support to JavaScript/Plugin Support.
The notetag you need is in the instructions for Weak Enemy Poses, and the script call to go inside it is in the instructions for Absorption Barrier 😉

Code:
<Custom Enemy Pose>
if (!user.barrierPoints())
    name = 'your_weak_filename';
else
    name = defaultBattlerName;
</Custom Enemy Pose>

Replace "your_weak_filename" as appropriate.
The notetag you need is in the instructions for Weak Enemy Poses, and the script call to go inside it is in the instructions for Absorption Barrier 😉

Code:
<Custom Enemy Pose>
if (!user.barrierPoints())
    name = 'your_weak_filename';
else
    name = defaultBattlerName;
</Custom Enemy Pose>

Replace "your_weak_filename" as appropriate.
It worked, thank you

Original thread: https://forums.rpgmakerweb.com/threads/change-enemy-pose-based-on-aborption-barrier.165088/