The spell system, and the way to fix the spells is in <ArcEmu Folder>/src/scripts/src/SpellHandlers. Just look around in the code for examples and tinker around, I'm not 100% sure how one would go about fixing a spell without having a look for myself.