Yanfly Tips and Tricks: Joint Penalty (help)

So, about this bit from Yanfly: https://www.youtube.com/watch?v=VH2iV079opg


It's a video where he explains how to make the Joint Penalty state using the Buffs and States core and Battle Engine Core.


Yeah, I have these plugins and I used the code provided, but when the state in question is applied to enemies, I decided to tack on the "Healing Link" code too. I wanted to create a "Connected" state, where the troop would be connected together, for better or worse. Damage transfer and healing transfer.


So two problems arose, with the latter being the bigger problem:


1. When I had the Healing Link code pasted on, i was hoping that when the enemy healed, it'd heal the connected enemies in the troop as well, but it heals the player instead.


2. When I strike the enemy with the linked state, not only does the damage NOT transfer to other enemies, the damage dealt is shown as Zero, yet they die instantly.


I was hoping someone could tell me what I could do to fix the code or if i did something wrong, or if it's my plugin arrangement.


Any help would be appreciated. 


Edit: I'd like to apologize if there's already a similar post on the forum, as I did run a search and nothing came up. 

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-tips-and-tricks-joint-penalty-help.64193/