Thread: Bot mana cost
View Single Post
  #2  
Old 07-26-2014, 08:20 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

Here's some of the botspellsai.cpp code:

Code:
// manacost has special values, -1 is no mana cost, -2 is instant cast (no mana)
    int32 manaCost = mana_cost;

    if (manaCost == -1)
        manaCost = spells[AIspells[i].spellid].mana;
    else if (manaCost == -2)
        manaCost = 0;
Reply With Quote