Hello, try code like (run it one time):
var lastUnit = new WoWUnit(0);
wManager.Events.FightEvents.OnFightStart += delegate (WoWUnit unit, CancelEventArgs cancelable)
{
if (unit != null && unit.IsValid && lastUnit != null && lastUnit.IsValid && !unit.Guid.Equals(lastUnit.Guid))
{
lastUnit = new WoWUnit(unit.GetBaseAddress);
// StartFight(Int128 guid, bool skipIfPlayerAttackedButNotByTheTarget = true, bool managerMovement = true, bool stopIfPlayerTargetChange = false, bool rotationBot = false)
Fight.StartFight(unit.Guid, false, false, true, true);
cancelable.Cancel = true;
}
};
(not tested)