Skip to content

Fix and rename sub_6FCD09D0 to AITACTICS_WanderToTarget - #220

Merged
Lectem merged 1 commit into
ThePhrozenKeep:masterfrom
AudriusButkevicius:fix/193-incorrect-wander
Apr 26, 2026
Merged

Fix and rename sub_6FCD09D0 to AITACTICS_WanderToTarget#220
Lectem merged 1 commit into
ThePhrozenKeep:masterfrom
AudriusButkevicius:fix/193-incorrect-wander

Conversation

@AudriusButkevicius

Copy link
Copy Markdown
Contributor

Summary

  • Fixes sub_6FCD09D0 which incorrectly delegated to AITACTICS_WalkCloseToUnit, using the monster's own position instead of the target's
  • The function now calculates random offsets around pTarget's coordinates (via CLIENTS_GetUnitX/Y) and calls AITACTICS_MoveToTarget, matching the original assembly behavior
  • Renames sub_6FCD09D0AITACTICS_WanderToTarget across the codebase (3 files, 13 occurrences)

Fixes #193

Note: This PR was produced using Claude Code based on the upstream issue description. The change has not been compiled or tested, as the project requires a Windows build environment which was not available. Please review carefully before merging.

The function should wander around the target's position with random
offsets, not around the monster's own position. Replaces the incorrect
delegation to AITACTICS_WalkCloseToUnit with proper target-relative
coordinate calculation.

Renames sub_6FCD09D0 to AITACTICS_WanderToTarget across the codebase.

Fixes ThePhrozenKeep#193
@Lectem
Lectem merged commit 1901980 into ThePhrozenKeep:master Apr 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sub_6FCD09D0 Is Incorrect

4 participants