Update spells.lua

Update to the new functions.