What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Power Cost

gonemental

Member
Joined
Nov 14, 2010
Messages
295
Reaction score
11
Is there a way to find the power cost of spell with the new api. Seems it got removed in the latest build.
 
excellent catch, time to frontload conditional for spells now :)
 
Code:
        public static bool HaveEnergy(string Name)
        {
            string lua = String.Format("return IsUsableSpell(\"{0}\")", Name);
            return Lua.GetReturnVal<bool>(lua, 2);            
        }
 
Back
Top