Enemies can target only one of it's allies and always target the same.

Why does my nemies can target only one of it's allies and always target the same. For example, this mage always heal or resurect the big rat at it's right. The healing competence is set to "one ally" for example. See the screenshots below.. 


[IMG]https://snag.gy/Bw9yCc.jpg[/IMG]


[IMG]https://snag.gy/9BZyWt.jpg[/IMG]


[IMG]https://snag.gy/D6VTHC.jpg[/IMG]
It's a bug in VX Ace's default code.  Use @Lone Wolf's Enemy Targeting Fix to correct this behavior.
Thanks! It's working!! But now the corps reanimation doesn't make the battller's picture to reappear. The ennemy is alive.. it attacks and can be attacked, but it's image is not there.. 

Is it an other bug in default code or should it be from the script?

Original thread: https://forums.rpgmakerweb.com/threads/enemies-can-target-only-one-of-its-allies-and-always-target-the-same.67599/