I need a Macro that will cast the PvP Talent Heroism on myself and my friend, but only when I have a hostile target. It also needs to be able to put it on myself if I have no friend with me at the time, but still only if I have a Hostile target.
You talk about Bloodlust/Heroism that is cast with the Enhancer Shaman’s PvP Talent Shamanism?
Without trying it out, the PvP Talent’s description states “only affects you and your friendly target”.
Part [1] check, if you are in a Group(any, can be Party or Raid) and your Target is Hostile and not dead(no need to use Exists the Harm deals with that) the Spell will be cast @party1.
Part [2] checks if your Target is Hostile and then casts it at you.
You could add a “[@player]” after the 2nd one so it casts Heroism at you even if you have no target or a friendly target.
Add a “[ ]” instead to cast Heroism even if [1] isn’t true(you’re *not in any party/raid and have a Hostile Target) and you not solo with a Hostile as Target. This would let you use it on any Friendly Target in the World if Warmode is Active.
Yes you can. I use on my Holy Paladin a Macro that checks is my Target Hostile and has a Friendly Target … and then i cast on that Friendly Target a Holy Shock.
Or my other Macro that casts Judgment or Crusader Strike at my Friendly Target if that is Hostile
So yes you can test if a Target is Hostile or Friendly and then cast a Spell on a total different Target, but you have to specify it.
@player
@pet
@targettarget
@focus
@party1
@mouseover
@cursor
@boss1
@arena1
@cursor
Your macro does what mine does, you stop the macro from executing when there is no Hostile Target, or it is Dead, but otherwise it does the same as mine does. Two ways of achieving the same.
But … i not use stopmacros, so you did teach me a little something, thanks for that!
I’ll need to test that as it shouldn’t work.
[added]
Doesn’t work, never casts Heroism on friendly party1 regardless of target conditions. The only way to get it to attempt to cast on @party1 was to duel them while in group with them so they’d become hostile.
So, i now finally got around to test this. And yes my macro should work. The only thing that doesn’t seem to work is the harm, @player for some reason. I made this here:
And this does work. I was not in a party, just in Stormwind on the backside of the Auctionhouse where Topper McNabb with a few Rats is.
If i target one of the Rats the harm part activates, if i put someone in my Focus the @focus part activates.
For some weird reason you can’t seem to do harm, @player
I did some more testing, and you are right.
As soon as you specify in the conditionals a target with @TargetX the system checks every other condition against that Target.
That means _[group, harm, nodead, @party1] _ Party1 would need to be harmand in your Party, but isn’t that a logical error? With harm you check your target … and @target is supposed to aim whatever Spell is used at specified Target?
Help me here with the logic, will you please?
@Elvenbane, this here:
You didn’t really explain what is going on here. Sorry but on my end here this post doesn’t make any sense. I am sorry but i am not a native English speaker and not a programmer, so if that makes sense to a Programmer then ok, didn’t to me.
Here the same thing. With my learned knowledge from Sharinthia, it starts to make sense that the macro you tested would work if you are in a Party with the person you duel with and said Party member turns Hostile because then @party1, harm would become true.
But yea, nothing learned from you here today, which is sad.