Cavern Survival - Revived enemies attack me

When I cast ‘raise-dead’ in Cavern Survival, it also revives the enemies (of course), and the enemies attack me… why? Correct me if I’m wrong, but if you revive an enemy using ‘raise-dead’ it should be helping you and not attacking you, right?

Oh, and hero.findNearestEnemy() also doesn’t register them as enemies, even my summoned units ignore them… archer towers do too.

right revived enemies should attack enemy not you not sure what’s wrong ask @Bryukh
and @Chaboi_3000