Stillness of Mind + Face Puncher

When I play with Amara using Dragon class mods and Face Puncher, the enemies affected by Stillness of Mind are those next to Amara, instead of the dead enemy. Why does that happen?

The Dragon mod is when you kill an enemy and then it effects the nearest enemy

Yes, the enemy that’s nearest the first enemy affected. Right? Instead, it’s affecting the enemy that’s right next to me.

Its probably coded to be the closest to Amara in both examples. Its just that for a regular melee Amara both the nearest enemy and the closest to Amara is the same one