You are using no metamethods at all.
If you want more clarification, read the manual: http://www.lua.org/manual/5.1/manual.html#2.8
Your code is also semantically flawed, have you tried calling the second version of "getTasks" more than once?
ghouls, slimes, necromancers, dwarves, amazons...