Files
TrinityCore/src/server/game/Movement
Giacomo Pozzoni 29bf280e34 Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon (#24036)
* Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon

Fix path generator returning shortcuts when start and end are on the same polygon by handling this case as if start and end were on 2 different polygons. This will ensure BuildPointPath() gets called which calls FindSmoothPath(), making sure each step is not longer than SMOOTH_PATH_STEP_SIZE (4 yards)

* Change ingame cast error message to SPELL_FAILED_NOPATH from SPELL_FAILED_OUT_OF_RANGE if the generated path is too long
2020-01-09 19:38:45 +01:00
..
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00
2020-01-02 06:25:50 +01:00