Did anyone successfully found way to detect if we are behind or not?
I'm using this:
And people still report my CC spamming backstab while being in front during solo combat (when mob is targetting us).
I've tried couple different ways, but never succeeded in solving this issue.
I'm using this:
PHP:
public static bool ImSafelyBehind( this WoWUnit unit )
{
return unit.ImBehind(0.97*Math.PI);
}
public static bool ImBehind( this WoWUnit unit, double arcBehind)
{
return unit.IsValid &&
WoWMathHelper.IsBehind(
StyxWoW.Me.Location,
unit.Location,
unit.Rotation,
(float)(2*Math.PI - arcBehind)
);
}
public static Composite CreateBackstabOrAmbush()
{
return new Decorator(
ret => Me.CurrentTarget.ImSafelyBehind(),
new PrioritySelector(
Spell.Cast("Ambush", ret => Commons.Stealthed || ShadowDancing),
Spell.Cast("Backstab", ret => !Commons.Stealthed && !ShadowDancing)
));
}
And people still report my CC spamming backstab while being in front during solo combat (when mob is targetting us).
I've tried couple different ways, but never succeeded in solving this issue.
Last edited: