     if window.cSettings.consumables
       # If champ has no mana, remove mana pot from consumables
       consumables = prebuilts.consumables.concat([])  # Lazy fix for pointer issue.
-      if manaless.indexOf(champ) > -1
+      if _.contains(manaless, champ)
         consumables.splice(1, 1)
 
       builds.push {

    !gg.championData.firstItems.highestWinPercent.winPercent
  ]

  if undefArray.indexOf(true) > -1
    window.undefinedBuilds.push(champ + ' ' + _.capitalize(currentPosition))
    return step()


      }

    # If freqCore and highestCore are the same, only push once.
    if _.eq(freqCore.build, highestCore.build)
      builds.push {
        items: freqCore.build
        type: templates.combinedCore({wins: freqCore.wins, games: freqCore.games})
