I am not sure is it a bug !?
The scenario is:
I has 3 roles AA, BB and CC, in the game.
Let AA create a party, BB and CC join the party what AA created.
And set the BB, CC into following mode, the following target is AA (AA is the leader).
In the lock map, they work fine... together to kill monsters...
When the AA initial the Auto-Storgae action, and leave the lock map routing back the city.
The BB and CC follow the AA to back the city (in the following mode).
But, walking through the un-lock field, the BB and CC activly to attack the monsters in the following.
So, I modify the code in "processAutoAttack" subroutine of src/AI/CoreLogic.pm, such as:
The original code:
Code: Select all
.....
$routeIndex = AI::findAction("mapRoute") if (!defined $routeIndex);
my $attackOnRoute;
if (defined $routeIndex) {
$attackOnRoute = AI::args($routeIndex)->{attackOnRoute};
} else {
$attackOnRoute = 2;
}
....
Code: Select all
......
$routeIndex = AI::findAction("mapRoute") if (!defined $routeIndex);
my $attackOnRoute;
if (defined $routeIndex) {
$attackOnRoute = AI::args($routeIndex)->{attackOnRoute};
} else {
$attackOnRoute = $following ? 1 : 2;
}
.....
It works, the BB and CC never attack activly the monsters in the following, walking through the un-lock field.
Is this a bug ??
Do I need to update the SVN ??