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
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
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ì
6e2306f24a
refactor(src/server/game/Movement): remove unused imports ( #20098 )
2024-09-29 18:14:12 +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
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
AG
f7d7c4feb7
fix(Core/Creature): Improve chase movement ( #17557 )
...
* Update TargetedMovementGenerator.cpp
* Adding Ovahlord as co-author
TIL: you can assign multiple authors to a commit 😛
Co-Authored-By: Ovahlord <18347559+ovahlord@users.noreply.github.com >
* Remove unused variable
* Undo some changes
---------
Co-authored-by: Ovahlord <18347559+ovahlord@users.noreply.github.com >
2023-11-26 17:09:24 +01:00
Andrew
7795dc4379
fix(Scripts/SSC): Script Hydross OOC event ( #17804 )
...
* fix(Scripts/SSC): Script Hydross OOC event
* Update rev_1700448248255858600.sql
* Update boss_hydross_the_unstable.cpp
* Update rev_1700448248255858600.sql
2023-11-20 10:46:38 +01:00
wenzuowei
ee154036bd
fix(Core/Movement) Smoother movement of hunter pets when following players ( #16796 )
...
* Pets follow the player at the player's speed
* More accurate distance measurement
2023-08-06 03:19:23 +02:00
天鹿
ab7c12fe41
chore(core): Cleanup code p2 ( #16041 )
...
* Update AchievementMgr.cpp
* Update M2Stores.cpp
* Update LFGHandler.cpp
* Update PetHandler.cpp
* Update WaypointMovementGenerator.cpp
* Update ScriptMgr.cpp
* Update SpellAuras.cpp
* Update Spell.cpp
* Update SecretMgr.cpp
* Update SpellScript.cpp
* Update SecretMgr.cpp
* Update Spell.cpp
* Update SpellAuras.cpp
* Add files via upload
* Update PetHandler.cpp
* Update PetHandler.cpp
* Update CalendarMgr.cpp
* Update LFG.h
* Update WaypointMovementGenerator.cpp
* Update MapScripts.cpp
* Update Unit.cpp
* Update SmartScript.cpp
2023-05-13 15:00:29 -03:00
天鹿
d75bcf0f67
chore(core): Cleanup code ( #16012 )
...
* Update SmartScript.cpp
* Update M2Stores.cpp
* Update PetHandler.cpp
* Update WaypointMovementGenerator.cpp
* Update WorldSession.cpp
* Update spell_item.cpp
* Update LoginDatabase.cpp
2023-04-19 21:34:48 -03:00
UltraNix
3d5ec682c0
fix(Core/Movement): Updated creature pet's follow movement. ( #15360 )
2023-03-13 08:14:40 -03:00
Kitzunu
f039836a2f
chore(Core/Misc): Change all TODO to doxygen comment ( #14966 )
2023-02-12 10:05:34 -03:00
UltraNix
48ce957597
fix(Scripts/BlackMorass): Adds should walk towards Medivh. ( #14945 )
2023-02-12 08:27:25 -03:00
UltraNix
7f7a2f5a92
fix(Core/Creatures): Critters should start fleeing upon entering comb… ( #14253 )
2023-01-28 11:01:43 +01:00
UltraNix
7d65250414
fix(Core): Crashfix. ( #14667 )
2023-01-28 10:58:58 +01:00
Mickaël Mauger
24fa3ba828
fix(MMAP/core/PathGenerator): Try to fix more water creatures ( #13705 )
...
Co-authored-by: jackpoz <giacomopoz@gmail.com >
2023-01-02 22:26:12 +01:00
UltraNix
0f4e8f07ff
fix(Core/Movement): Falling/Jumping/Knockback effects should not make… ( #14044 )
...
fix(Core/Movement): Falling/Jumping/Knockback effects should not make mobs to evade.
2022-12-11 03:55:20 +01:00
Skjalf
19fa22ba92
Revert "refactor(Core/Movement): Naming convention" ( #14100 )
...
Revert "refactor(Core/Movement): Naming convention (#13989 )"
This reverts commit d2f440c3e8 .
2022-12-11 03:53:09 +01:00
Maelthyr
d2f440c3e8
refactor(Core/Movement): Naming convention ( #13989 )
...
update codestyle
Co-authored-by: Maelthyrr <lynethris@protonmail.ch >
2022-12-02 05:52:01 -03:00
UltraNix
5338117e0d
fix(Core/Movement): Fixed mobs evading attacks in case of incompleted… ( #13519 )
...
fix(Core/Movement): Fixed mobs evading attacks in case of incompleted movement paths.
Fixes #12339
Fixes #13156
2022-10-27 05:23:05 -03:00
UltraNix
1c6eab5856
fix(Core): Crashfix. ( #12643 )
2022-08-07 18:22:12 -03:00
UltraNix
572a680c16
fix(Core/Movement): Improvements to taxi flight movement generator: ( #12347 )
...
Changed multi-segment taxi paths to fly nearby flight masters along the way, not directly through them.
Taxi cost on multi-segment paths is now charged per segment when it is started.
Properly send taxi node status on login, as well as if the taxi master is out of range.
Apply reputation discount to all points in multi-segment paths.
Properly clean up list of taxi destinations upon arrival at final node.
Teleport players to the destination taxi node location instead of their current ground position.
Don't start a spline with just 1 point in FlightPathMovementGenerator
Source: TrinityCore.
2022-08-01 23:21:11 -03:00
UltraNix
801e68b1dd
fix(Core/Creatures): Added new AI function OnTeleportUnreacheablePlayer to teleport all unreachable players. ( #12193 )
...
* fix(Core/Creatures): Implemented CREATURE_FLAG_EXTRA_TELEPORT_UNREACHABLE_PLAYERS.
Fixed #11750
* Update.
* Update.
* Update.
2022-07-24 13:10:41 -03:00
UltraNix
1066bc76b1
fix(Core/Spells): Upon using charge warrior should start auto attacki… ( #12408 )
...
...ng the targeted enemy once you reach them.
2022-07-19 18:02:45 -03:00
IntelligentQuantum
cc52712ac1
refactor(Core/AI): factory functions cleanup ( #11779 )
2022-07-15 16:11:49 +02:00
UltraNix
113bdacb5f
fix(Core/Tools): Revert "Handle different slopes in mmaps and Add so… ( #12111 )
...
...me more input parameters to improve"
This reverts commit b544eb420e .
Fixes #12079
2022-06-21 16:07:53 -03:00
UltraNix
228b2f6f6b
fix(Core/Movement): Improved fleeing movement generator. ( #11896 )
...
* fix(Core/Movement): Improved fleeing movement generator.
Fixes #11850
* Update.
2022-06-06 09:19:27 -03:00