Commit Graph

199 Commits

Author SHA1 Message Date
Gultask
a1f5d39370 fix(Core/Movement): Improve Pet LoS cancellations by using path calculation instead of raycasting (#24330) 2026-01-07 23:47:41 -03:00
killerwife
b73028f6f5 fix(Core/Unit): Introduce animtier to malygos to fix flying animations (#24067) 2025-12-10 01:09:21 -03:00
天鹭
f9924074ac refactor(Core/Movement): Fix Build (#23739) 2025-11-17 01:19:10 -03:00
天鹭
2a926f15f7 fix(Core/Movement): Fix SummonMovementInform for summons (#23725) 2025-11-17 00:55:49 -03:00
Benjamin Jackson
c552158e99 fix(Core/Entities): Improve interactions between taxis and players regarding PvP flag. (#23681) 2025-11-15 05:21:22 -03:00
Francesco Borzì
50b36e842a fix(docs/license): use GPLv2 as MaNGOS-based project (#23655) 2025-11-14 08:44:25 -03:00
天鹭
6d64ecd24f fix(Core/Vmaps): Fix inconsistency of hitInstance and hitModel to cause wrong area ids (#23233)
Co-authored-by: ModoX <moardox@gmail.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Grimdhex <237474256+Grimdhex@users.noreply.github.com>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2025-11-11 01:51:52 -03:00
killerwife
288b495701 fix(Core/Movement): Fixup root distancing mobs being stuck in a loop (#23514) 2025-11-03 03:44:29 -03:00
killerwife
4fd7a2a644 Waypoint: Fix last point not being reached on non 0 indexed paths (#23460) 2025-10-28 18:56:44 +01:00
killerwife
6292f80219 feature(SmartAI/Movement) - Unify waypoint systems (#23251) 2025-10-26 17:52:59 +01:00
killerwife
1b2db00701 fix(Core/Vehicle): Fix invisible vehicle passengers (#23406) 2025-10-25 22:25:43 -03:00
killerwife
10d5a3c553 fix(Core/Unit): rework Walk/Run mode (#22988)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 17:54:19 -03:00
killerwife
0767b2edf5 fix(Core/Movement): Add safeguards against root freezes (#23117) 2025-10-05 14:45:07 -03:00
killerwife
8e6d35c9b2 fix(Core/SAI): idle casters (#23005) 2025-09-23 20:45:48 -03:00
Anton Popovichenko
67aa022dbf fix(Core/Leash): Improve leashing behavior and timer handling (#22525) 2025-07-29 09:55:56 -03:00
Anton Popovichenko
7712c2a973 fix(Core/FleeingMovementGenerator): Prevent fleeing players from moving off cliffs (#22462)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2025-07-14 10:24:55 +02:00
Anton Popovichenko
628f6255c4 fix(Core/FleeingMovementGenerator): Prevent fear movement from causing characters to fall through the ground (#22451) 2025-07-11 11:44:44 -03:00
Takenbacon
1c3cbd3d9e feat(Core/Maps): Improve map object updater (#22392) 2025-07-11 16:00:16 +02:00
Benjamin Jackson
f910147296 fix(Core/Movement): Use attack speed for leash reset period and only extend timer if in melee range or can't move freely. (#22350)
Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2025-06-24 16:17:59 -04:00
sudlud
4459afc98d fix(Core/Movement): Allow MoveFollow to not inherit speed of the target (#21711) 2025-03-15 21:47:11 +01:00
Takenbacon
ee69a569c4 fix(Core/Grids): Grid improvements (#20955) 2025-02-14 22:11:27 +01:00
Kitzunu
47c5ff904f refactor(Core/Disables): Convert from Namespace to Class Structure (#21109) 2025-02-01 22:48:52 +01:00
Takenbacon
c8734af4bc fix(Core/Movement): Fix creatures not resuming movement after being talked to (#20945)
Fix creatures not resuming movement after being talked to
2024-12-18 20:19:31 +01:00
Takenbacon
e9c86737fb refactor(Core/Random): Remove unused map based RNG (#20939)
Remove unused map based RNG
2024-12-18 13:48:06 +01:00
Benjamin Jackson
2654ec83cd fix(Core/AI): Increase movement leash extension interval. (#20867)
Init.
2024-12-08 21:04:41 +01:00
Francesco Borzì
a9f0f371e5 refactor(src/server/game): optimise imports (#20541) 2024-11-13 11:37:20 +01:00
Grimdhex
08bfecdbea fix(Core/Movement): remove unecessary reset() (#20419)
Co-authored-by: Ovahlord <18347559+ovahlord@users.noreply.github.com>
2024-11-03 17:36:48 -03:00
Grimdhex
0b031de2ea fix(Core/Movement): fix a small memory leak in RandomMovementGenerator (#20258)
* fix(Core/Movement): memory leak and possible crash

Co-Authored-By: Ovahlord <18347559+ovahlord@users.noreply.github.com>

* .

* fix review

---------

Co-authored-by: Ovahlord <18347559+ovahlord@users.noreply.github.com>
2024-11-01 09:39:37 -03:00
Francesco Borzì
2317004417 refactor(src/server/database|shared): remove unused import (#20316) 2024-10-28 10:04:42 +01:00
Francesco Borzì
6e2306f24a refactor(src/server/game/Movement): remove unused imports (#20098) 2024-09-29 18:14:12 +02:00
Jelle Meeus
a7578e1cce fix(Scripts/TheEye): Kael'thas p5 transition, flight, MotionMaster:MoveTakeoff (#20005)
Co-authored-by: killerwife <killerwife@gmail.com>
2024-09-24 08:33:21 -03:00
Kitzunu
386aea03ee chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks

* update if

* ) ) to ))

* missed some ) )

* now switch

* .
2024-09-21 19:34:31 +02:00
Benjamin Jackson
00e35a201e fix(Core/AI): Reduce movement leash extension interval. (#19923)
* Init.

* Use GetGameTime() instead of system call.

Co-Authored-By: Anton Popovichenko <walkline.ua@gmail.com>

* Update leash timer if rooted.

* Remove unnecessary checks, add extension for fanning.

More parity with VMaNGOS implementation.

---------

Co-authored-by: Anton Popovichenko <walkline.ua@gmail.com>
2024-09-11 03:25:32 -03:00
天鹿
fafd351e44 fix(Core/AI): creature leashing behavior. (#19897)
* Update Unit.cpp

* Update TargetedMovementGenerator.cpp

* Update Unit.cpp

* Update Unit.cpp
2024-09-09 07:07:11 -03:00
Benjamin Jackson
b47b5d2c51 fix(Core/AI): Initialize movement leash timer to five seconds. (#19898)
Init.

https: //github.com/vmangos/core/commit/c8510cbbd4dccbdac9900cc507910ef3ae0e6c43

Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2024-09-08 21:44:09 -03:00
Benjamin Jackson
bf18b9bdfb fix(Core/AI): Improve creature leashing behavior. (#19751)
* Init.

https: //github.com/vmangos/core/commit/7d2f1e2923734ea1b983eeaa0208cfd158d4af02
Co-Authored-By: ratkosrb <35845488+ratkosrb@users.noreply.github.com>

* Hackfix for pets.

* Whoops.

* Correct evade uses.

* Conflict.

* Actually fix grace timer.

* Add visibility distance check.

Creatures should always fail combat checks in the open world if they're outside of visibility distance, might not be the case for worldbosses.

---------

Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2024-09-03 21:08:56 +02:00
Benjamin Jackson
1edac37ac3 refactor(Core): Make more use of helpers. (#19835)
* Init.

* Reword.

* Update codestyle script.

Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Add gameobject type ID check, reorder checks.

* Add helper/codestyle check for unit type.

* `IsUnit()` -> `IsCreature()`

* Add `IsUnit()` method.

* Use type mask.

https: //github.com/TrinityCore/TrinityCore/commit/cc71da35b5dc74abf71f8691161525a23d870bb5
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com>

* Replace instances of `isType` with `IsUnit`.

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com>
2024-09-03 14:41:31 -03:00
Grimdhex
221dbd3fdb chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops

* revert a typo
2024-09-03 13:02:38 -03:00
Saqra1
62b825f8bd fix(Core/Movement): Don't move for change in orientation only (#19687)
Changing only the orientation of a unit also flags it as if it were
moving, which causes spells to be interrupted.
2024-09-01 20:57:17 -03:00
Grimdhex
2f85097413 docs(Core): improve several functions documentation (#19677)
* initial release

* fix reviews

* fix some typo and add new documetations for MotionMaster

* new update and fix the cli-codestyle

* fix typo

* fix reviews
2024-08-28 08:17:24 -03:00
Grimdhex
643362d697 refactor(Core/Object): adds consistency in the use of type object check (#19671) 2024-08-25 09:57:37 -03:00
Francesco Borzì
02a05fbd4c refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports

* fix: build

* chore: fix build

* chore: size_t -> std::size_t

* chore: fix fuckup from previous commit

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build with std::size_t

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build
2024-07-30 20:06:46 -03:00
Tereneckla
e44e8fe109 fix (Core/Movement) Allow MoveFollow to not inherit walkstate of the target to fix Enchanted Elemental speed (#19498)
* MoveFollow with own walkstate

* switch
2024-07-29 08:30:42 -03:00
Jelle Meeus
40b63666ad feat(Core/Movement): implement Pause and Resume to WaypointMovementGenerator (#19176)
* implement Pause and Resume for WaypointMovementGenerator

Co-authored-by: ccrs <ccrs@users.noreply.github.com>

* prevent restart from external sources if wp is paused

* don't update stopmove on every update

SetFacing breaks otherwise

* timer args not used

---------

Co-authored-by: ccrs <ccrs@users.noreply.github.com>
2024-06-26 22:24:59 +02:00
Jelle Meeus
0d977c986e fix(Core/SmartAI): add prevent almost infinite spinning of mutual target to pets (#19090)
fix(Core/SmartAI)petspin
2024-06-19 21:13:34 -03:00
Anton Popovichenko
b90136d80d fix(Core/Pet): Fix pets chasing when pet and target spins uncontrollable (#18798) 2024-04-24 16:25:37 -03:00
Gultask
b69df485cf fix(DB/BlackTemple): Rework Black Temple (#18569)
* init

* more

* Update rev_1710358311839208100.sql
2024-03-18 22:31:05 +01:00
Anton Popovichenko
72e75982be fix(Core/Taxi): Fixes crash when player logins and continues flight (#18270)
* fix(Core/Taxi): Fixes crash when player logins and continue flight

* Update WaypointMovementGenerator.cpp
2024-02-12 08:18:05 -03:00
AG
8f127f9e21 Fix combat movement (#18026)
* Improve combat movement

 - Removed a bunch of logic related to another attempt at fixing combat movement.
- Removed SMART_ACTION_SET_CASTER_COMBAT_DIST and updated smarts scripts accordingly.
- Cherry-picked 7fb7432620
- Cherry-picked 63a6e1e048

Co-Authored-By: Ludovic Barbier <ludovic.barbier03@gmail.com>
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>

* Some more cleanup + fix sql

* More fixes to caster chase/combat movement + some cherry picks because why not

- Fix casters always trying to chase to melee range
- Fix casters another case of casters sometimes walking back instead of stopping
- Cleaned up some code
- Cherry picked ca25e8d019
- Cherry picked 96b289cadb

Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>

* Added parentheses

* Fixed caster combat movement when target is rooted

- Made a few adjustments to chase range and stuff, but nothing set in stone.

* convert uint to int

---------

Co-authored-by: Ludovic Barbier <ludovic.barbier03@gmail.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2024-01-03 09:56:24 +01:00
IntelligentQuantum
258e369ee5 chore(Core): remove useless includes (#18036) 2023-12-23 12:16:27 -03:00