When the trigger stopAttack is set, it gets set multiple times, therefore if you go attack again, it will be still set to true and stop you from attacking once, i fixed it with this:
idk if that was how you did it, but it seemed simple and didn’t change anything in the game to worse, so i’m going to go with this.