Hi.
I am trying to make wrobot strafe after using frost nova with my frost mage fight class.
I am using following C# code and it kind of works:
wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) =>
{
var me = wManager.Wow.ObjectManager.ObjectManager.Me;
var target = wManager.Wow.ObjectManager.ObjectManager.Target;
if (me.IsAlive && target.IsAlive && !me.IsCast)
{
wManager.Wow.Helpers.Keybindings.PressKeybindings(wManager.Wow.Enums.Keybindings.STRAFELEFT, 250 * 1); // strafe left during 0.25 seconds
}
};
Problem is that it fires, but keeps on looping. Any ideas how I can cancel it again?