I found in player.lua(414):
Code: Select all
while( dist > 25.0 ) do
if( self.HP < 1 or self.Alive == false ) then
return false, WF_NONE;
end;
if( canTarget == false and os.difftime(os.time(), startTime) > 1 ) then
canTarget = true;
end
if( canTarget and (not ignoreCycleTargets) and (not self.Battling) ) then -- <<<<< HERE !!!!
if(settings.hotkeys.TARGET.modifier) then
keyboardHold(settings.hotkeys.TARGET.modifier);
end
keyboardPress(settings.hotkeys.TARGET.key);
if(settings.hotkeys.TARGET.modifier) then
keyboardRelease(settings.hotkeys.TARGET.modifier);
end
yrest(10);
end
I'm not sure in which situations the bot dont get a target from the aggroing mob. Perhaps the bot has allready himself as a target? Or I cleared the target at one place in my personal modification just before? I couldn't get the reason in detail. But I think it would be better for the bot to stop running, if in 'self.Battling' and wait for the mob running behind instead of running straight into the next mob group.