What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to make sure i'm facing target be4 spell is cast ?

hi1674

New Member
Joined
Jan 15, 2010
Messages
1,637
Reaction score
5
I was thinking of adding a wowmovement.face();

Maybe Ambush isn't the rite ability to use it on but i just took this one as an example.

Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Composite[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Ambush()[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=red]WoWMovement.Face(); <-- Would this work ?[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Decorator[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]([/SIZE]
[SIZE=2]SC.CastSpell([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Ambush"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], a => !Me.Combat && [/SIZE]
[SIZE=2]Me.IsStealthed && [/SIZE]
[SIZE=2]Me.GotTarget && [/SIZE]
[SIZE=2]Me.CurrentTarget.IsPlayer && [/SIZE]
[SIZE=2]Me.CurrentTarget != [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]null[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] && [/SIZE]
[SIZE=2]Me.IsWithinMeleeRange && SC.GCD == 0 && [/SIZE]
[SIZE=2]!Me.CurrentTarget.IsFacing(Me) && [/SIZE]
[SIZE=2]SC.CanCast([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Ambush"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]), [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Ambushing Target"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE]
 
[SIZE=2]);[/SIZE]
[SIZE=2]}[/SIZE]
 
Uh.... Me.CurrentTarget.Face() ?
 
I have no movement at all just wanna be sure it turns towards target just be4 spell is cast.(LazyRaider)

I thought "Me.CurrentTarget.Face" was a condition and not a movement.

Will test when i get home from work

Thx Apoc.
 
Back
Top