run blackhornet 's capx and just work your way through it - this works as expected (nice pulse effect by the way)
If you are calling a function in your code then you may need to tell the function which enemy is expected to fire...
firstly try re-writing to not use a function and see if it works...