• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Slow reaction to Auras

    Discussion in 'Honorbuddy Support' started by Chriasp, Oct 31, 2014.

    1. Chriasp

      Chriasp New Member

      Joined:
      Jun 7, 2012
      Messages:
      224
      Likes Received:
      2
      Trophy Points:
      0
      I have tried to get this resolved with Millz the creator of Demonic. But he doesnt have any answer, so I tought it might be a problem with HB. This is tried on all the different CRs I have (Demonic, Portal, Mirabis, Tuanha) and I always get aproximately the same problem.


       
      Last edited: Oct 31, 2014
    2. Tony

      Tony "The Bee" Staff Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      128,834
      Likes Received:
      571
      Trophy Points:
      113
      Singular works as it should?
       
    3. Chriasp

      Chriasp New Member

      Joined:
      Jun 7, 2012
      Messages:
      224
      Likes Received:
      2
      Trophy Points:
      0
      This is the result after running the script with Singular

       
    4. Tony

      Tony "The Bee" Staff Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      128,834
      Likes Received:
      571
      Trophy Points:
      113
      thx for the report
       
    5. Chriasp

      Chriasp New Member

      Joined:
      Jun 7, 2012
      Messages:
      224
      Likes Received:
      2
      Trophy Points:
      0
      Millz says he seems to have a temporary fix for the problem.

      "I've found the issue. It's related to a condition when using a lvl 100 talent. I'll get a fix pushed today for it."

      But I know the bug arent laying in the CR, so I just wanted to let you know what Millz said.
       
    6. MaiN

      MaiN Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,017
      Likes Received:
      35
      Trophy Points:
      48
      The issue is the code which uses Thread.Sleep and freezes WoW for a second. Thread.Sleep should never be used. For reference, the following code:
      Code:
      private static async Task<bool> DetectBuff()
      {
          Logging.Write("Sleeping 5 seconds");
          await Coroutine.Sleep(5000);
          
          if (SpellManager.CanCast(113858))
          {
              SpellManager.Cast(113858);
              Logging.Write("Cast Dark Soul");
          }
      
      
          var sw = new Stopwatch();
          sw.Start();
      
          for (int i = 0; i < 1000; i++)
          {
              Logging.Write(sw.ElapsedMilliseconds + " Checking...");
              if (StyxWoW.Me.HasAura(113858))
              {
                  Logging.Write(sw.ElapsedMilliseconds + " Detected!");
                  break;
              }
              
              await Coroutine.Yield();
          }
          
          return true;
      }
      
      Gives the following output when run from a combat routine:
       

    Share This Page