the devourer effect activates when you start attacking so if you go the wrong interval (it not procing you w ) just leave combat wait for the icon to disappear and make sure you always start a fight with w procing.
btw i think the are 3 animation set one with no w one with w every second aa and one where both you and you shadow proc w at the same time. i may be wrong i am still checking.
Edit: ok i think i have figured it out there are 3 attack animation loops
first: when you have W as your next attack you will proc w then your phantom will proc then you w again.
Second your W is 2 attacks away this is the bad one. you attack normaly then your next attack is a normal one because you have 2 aa before your next w but your shadow takes this up so your dont proc at all skiping to your 4th aa
third: your w is one aa way you do a normal aa then you and you shadow both do the w.
correct me if im wrong on any of these