why some time my aggron sometimes damage invisible enemies?
It’s probably a bug.
Sometimes, if a projectile is fired at an enemy and that enemy dies before being hit, the projectile gets redirected to another enemy. If that enemy is invisible, it can end up being revealed.
In Aggron’s case, honestly I’m not sure what causes it, since it doesn’t use projectiles.