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.

Priest - Won't cast Shadow Word: Pain - Log and Fight Class attached

Featured Replies

Hi All,

I've just purchased this bot and attempted to make my own fightclass. The first thing that I wanted to do was to create a Priest that casts SW:P first, and then other spells. I have been having troubles getting the spell to go off.

Any assistance with this would be great, thanks!

priest.xml

13 Jun 2017 00H49.log.html

For your "Target Buff" condition, try changing Need to True.

Also, it's better practice to use "Buff Casted By Me" instead of "Target Buff", in case another priest has cast SWP on the target.

@Droidz

this is a problem with TBC 2.4.3, where on players HaveBuff doesn't work (I tried C# API too). It works on NPCs.
Or at least, in Battlegrounder mode this is bugged, but doing it normally while leveling works fine.

  • 2 weeks later...
On 14/06/2017 at 11:57 AM, Matenia said:

@Droidz

this is a problem with TBC 2.4.3, where on players HaveBuff doesn't work (I tried C# API too). It works on NPCs.
Or at least, in Battlegrounder mode this is bugged, but doing it normally while leveling works fine.

Hello, Are you sure? I cannot reproduct this problem

On 12/06/2017 at 11:55 PM, jrouten said:

For your "Target Buff" condition, try changing Need to True.

Also, it's better practice to use "Buff Casted By Me" instead of "Target Buff", in case another priest has cast SWP on the target.

Hello, "Buff Casted By Me" don't works on TBC

Yes, it works in PvE I think, but not in PvP.

I made this Extensions to help it atm:

public static bool HaveDebuff(this WoWUnit unit, string name)
    {
        if (unit == null)
            return false;

        var tmpFocus = ObjectManager.Me.FocusGuid;
        ObjectManager.Me.FocusGuid = unit.Guid;
        string luaString = @"hasDebuff = false;
        for i=1,40 do
	        local name, rank, iconTexture, count, debuffType, duration, timeLeft = UnitDebuff(""focus"", i);
            if name == ""{0}"" then
                hasDebuff = true
            end
        end";
        bool hasDebuffType = Lua.LuaDoString<bool>(string.Format(luaString, name), "hasDebuff");
        ObjectManager.Me.FocusGuid = tmpFocus;
        return hasDebuffType;
    }

 

  • 3 weeks later...

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.