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.

Cast buff on nearby, friendly players (not in party)

Featured Replies

How do I cast Mark of the Wild, Fortitude or any other buff on a nearby, friendly player that isn't in my party? Is there a spell condition that I do not see? I re-read the entire list twice. I see "Hostile Unit Near" and "Hostile Unit Near Target" but I desire OPPOSITE. 

  • 1 year later...
  • Author

Is this still not possible? Has it by any odd random chance been integrated? Perhaps with macro or option that I overlooked?

Untested but, c# condition:

ObjectManager.GetObjectWoWPlayer().Where(x => x.PlayerFaction == ObjectManager.Me.PlayerFaction && !x.HaveBuff("Mark of the Wild") && x.GetDistance2D < 40).Count() > 0

Not Spell is C# Code - True in spell settings:

Interact.InteractGameObject(ObjectManager.GetObjectWoWPlayer().Where(x => x.PlayerFaction == ObjectManager.Me.PlayerFaction && !x.HaveBuff("Mark of the Wild") && x.GetDistance2D < 40).FirstOrDefault().GetBaseAddress);
SpellManager.CastSpellByNameLUA("Mark of the Wild");

Again.. completely untested. Might work for you.

Also you'd want to add another condition to make sure you only do this out of combat.

 

Edit: As a side note, I saw that in the fightclass editor there is a Optional General Setting called Additional C# code we could add a function in there which can be used in the conditions/spells and make it more clean.

We could add:

public List<WoWPlayer> GetUnbuffedFriendlies(string buffname)
    {
        return ObjectManager.GetObjectWoWPlayer().Where(x => x.PlayerFaction == ObjectManager.Me.PlayerFaction && !x.HaveBuff(buffname) && x.GetDistance2D < 40).ToList();
    }

Then in the condition and spell we can do things like - Condition:

GetUnbuffedFriendlies("Mark of the Wild").Count() > 0

and spell:

Interact.InteractGameObject(GetUnbuffedFriendlies("Mark of the Wild").FirstOrDefault().GetBaseAddress);
SpellManager.CastSpellByNameLUA("Mark of the Wild");

Once again though... its all sudo code and is untested...

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.