Ok, then I need to reformulate the question: Why isn't it spawning particles?

Again, use the debugger to find out whether effect() is called at all, and whether or not the particle function is running.