Modified the castedSpells variable and how it's used.