Issue in character animation not triggering.

I am working on a game in which I have created classes for enemies and each classes uses curve table with different tags. Classes for examples are ranger (which do range based attacks), warrior (which does melee attacks) and mage (which does magic attacks).

I am encountering a bug where my enemy character never activates ranged attack animation. The enemy character sets its position a few distance from the player but it never attacks(the attack animation never triggers). If I set the character class to warrior then the enemy character gets close to the player and then the attack animation works but it does not work for ranger class. Ranged enemy AI uses EQS. I have provided link for the Behavior tree of the enemy, which shows that it skips certain nodes. And also screen shots of some of the blueprints.

Behaviour Tree YouCut_20250110_153800490.mp4 - Google Drive

Screenshots
https://drive.google.com/drive/folders/1TgWsmZxhIgff36_R2SvOdavV7Q9ypXfG

Got any clue why this happens? I tried to re-create the child blueprint from the base enemy character but still it’s not working. Only the warrior class works as of now, ranger class doesn’t work. If need more info please do tell. TIA.