Agitate

How do you make it that when you attack the enemy that is passive, it becomes hostile towards you?

Make a standardized attack that runs on a timer, proximity or something. Then make a switch that blocks the attack and is triggered by damage.