trigger function more than expected

Hi! I’m trying to code the player can only run the animation again after the animation finished, so I add trigger function in the begin and almost the end. When animation begin the boolean return false, when boolean is false player cannot play animation again. then boolean return true again when animation finished. but it always trigger the function one more times, so boolean always return false at the end.
7982817--1025193--7.png

Not enough info. What function is the event calling? Show more of the code. Show the code that runs the animation. etc…

7982916--1025235--5.png