MZ Is it possible to link two enemy units together?

I want to link two enemy units together so that when one takes damage, the other takes the same damage and if one heals, the other heals for the same amount. Is this possible naturally or will I need a plugin of some sort?

Oh for further clarity, I want to make a skill that does this to two units.
Does this happen only with 2 enemies? So that there aren't more of these pairs around? If it's only for 2 enemies, I think something like below works (though I don't remember if you can still reference value variable and stuff at post damage, but anyway Battle Core has variable that stores the damage in plugin settings). So put a state with notetag on the pair:

<JS Post-Damage as Target>
if (this.isHpEffect()) {
const linkedEnemy = $gameTroop.aliveMembers().find(enemy => enemy.isStateAffected(X) && enemy != target)
if (linkedEnemy && this.isDamage()) {
linkedEnemy.gainHp(value * -1);
}
if (linkedEnemy && this.isRecover()) {
linkedEnemy.gainHp(value);
}
}
</JS Post-Damage as Target>


EDIT: Changed 'filter' to 'find'
Thank you, I'll give it a shot! Yes with 2 enemies to start and maybe more if the skill level is increased.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-link-two-enemy-units-together.181744/