How do I change the timer duration?

I’m working on a Metroidvania and am currently implementing attacks. However, when the player does a air attack and then wallslides, the character ends up toggling back and forth between the wallslide and attack animations. The only solution I can think of would be to adjust the attack timer, but I’m not sure if that’s even possible.

This is the code that enables the attack

It would be helpful to see the events that trigger the wallslide.