Ejemplo n.º 1
0
 internal static bool GotBuff(string name)
 {
     if (!BuffManager.Contains(name))
     {
         string LuaStatement = "finalresult = hasBuff('" + name + "');";
         if (Calls.GetText(LuaStatement, "finalresult", 5).Trim() == "true")
         {
             BuffManager.Add(name);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     return(true);
 }