pass the correct parameter to the function GetElementIndexInList

change the spell name to spell structure when call this function before
add the spell to the sound play queue