Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using a decurse function

Featured Replies

I have a shaman healing class written in C# and I am trying to add a function to cast cleanse spirit when a specific debuff is put on any members of a party.  Can anyone tell me what I am missing:

 

        #region cleansespirit    
        bool cleansespirit()
        {
            if (!_cleansespirit.KnownSpell) return false;
            if (!_cleansespirit.IsSpellUsable) return false;
            var members = getPartymembers().Where(o => o.IsValid
                && o.IsAlive
                && o.HaveBuff("Bad Curse")
                && !TraceLine.TraceLineGo(o.Position)).OrderBy(o => o.HealthPercent);
            if (members.Count() > 0)
            {
                var u = members.First();
                WoWPlayer healTarget = new WoWPlayer(u.GetBaseAddress);
                if (!TraceLine.TraceLineGo(healTarget.Position) && healTarget.IsAlive)
                {
                    {
                        Interact.InteractGameObject(healTarget.GetBaseAddress, false);
                        _cleansespirit.Launch();
                        return true;
                    }
                }

            }
            return false;
        }
        #endregion

 

Thank You

  • Author
12 hours ago, BetterSister said:

 Problem is you don't tell what to look for. You can use lua to find bad buffs which i don't know code for. I think there is guide somewhere about finding bad buffs and removing them

The line

&& o.HaveBuff ("Bad Curse")

Where bad curse is just the filler. I put the name of the curse in there. Is there a way to do it by spell ID.

I will try and get some logs.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.