Added method to get a spell from the castedSpell map.