The-Cataclysm-Preservation-Project / TrinityCore

Archived repository for WoW 4.3.4.15595. The project will be reworked for Cataclysm Classic as an official new branch of TrinityCore at https://github.com/TrinityCore/TrinityCore
GNU General Public License v2.0
239 stars 97 forks source link

Core/Movement: follower will check target's vehicle for follow motion #420

Closed sanctum32 closed 9 months ago

sanctum32 commented 9 months ago

In this commit i added basic checks which will check target's current vehicle movement flags to determine if it moved. By default if if player is on vehicle, follow units will not follow player I honestly unsure if these changes are acceptable by current standarts.

Changes proposed:

Issues addressed: Fixes #

Tests performed: (Does it build, tested in-game, etc)

Known issues and TODO list:

sanctum32 commented 9 months ago

Just want to add note - some movable vehicles places ROOT movement flag on passenger, so technically base target is not moving for follower while vehicle is moving. In base, i'm unsure, this probably needs distance checks probably