spellbook improvement + bugfix

the required t-engine version is this: http://git.net-core.org/darkgod/t-engine4/commit/48066ca9b84b473156fc6c971200e02e900b6de5