After searching as targeting on some one monster to attack, the char stucks !
The char just stop walking to approach the monster that is targeted....
Then I trace the code in src/AI/Attack.pm. I found some one code line,
in the "sub main".
The original code line is :
Code: Select all
.......
} elsif ($realMonsterDist > $args->{attackMethod}{maxDistance}
&& timeOut($args->{ai_attack_giveup}, 0.5)) {
# The target monster moved; move to target
$args->{move_start} = time;
$args->{monsterPos} = {%{$monsterPos}};
.......
It seems to be check the attacking give up time out, but what is the "0.5" ?
So. I change to:
Code: Select all
.......
} elsif ($realMonsterDist > $args->{attackMethod}{maxDistance}
&& !timeOut($args->{ai_attack_giveup})) {
# The target monster moved; move to target
$args->{move_start} = time;
$args->{monsterPos} = {%{$monsterPos}};
.......
I update to SVN 7695