Commit graph

161 commits

Author SHA1 Message Date
blinkysc
687ceeea70
fix(Core/Vehicles): Prevent accessory double-install and respawn orphans (#25499)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-04-19 17:09:51 +02:00
Andrew
589784baa0
Revert "fix(Core/Vehicles): defer accessory init to avoid double install" (#25491) 2026-04-17 11:28:33 -03:00
Andrew
fc74e0e1fb
fix(Core/Vehicles): defer accessory init to avoid double install (#25486)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 17:15:30 -03:00
Andrew
f5c4de92eb
feat(Core/Maps): port spawn system/dynamic spawns from TrinityCore (#25206)
Co-authored-by: r00ty-tc <r00ty-tc@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 17:52:01 -03:00
Andrew
272da9fbad
refactor(Scripts/VioletHold): Modernize Violet Hold dungeon scripts (#25187)
Co-authored-by: joschiwald <joschiwald@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 13:02:28 -03:00
Takenbacon
27b0ecc6dc
refactor(Core/Collision): Store collision data on map context (#25049) 2026-03-22 22:33:04 -03:00
Localhost
f554cde330
fix(Core/Map): Ensure grid is valid before unloading to prevent potential … (#24621)
Co-authored-by: Roman BADANIN <r.badanin@defi-informatique.fr>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-22 11:54:14 -03:00
blinkysc
984baa92dd
refactor(Core/Combat): Port TrinityCore heap-based threat system (#24715)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Treeston <treeston.mmoc@gmail.com>
Co-authored-by: killerwife <killerwife@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 13:36:59 -05:00
Francesco Borzì
3b8ac391d9
fix(Core/Scripts): apply safety improvements (#24635) 2026-02-07 17:22:58 -03:00
Francesco Borzì
50b36e842a
fix(docs/license): use GPLv2 as MaNGOS-based project (#23655) 2025-11-14 08:44:25 -03:00
天鹭
8f5d50435b
fix(Core/Map): It should be ensured that the instance is unloaded only after the Creature Respawn. (#23103) 2025-11-11 02:59:57 -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
天鹭
a1c8e0f221
refactor(Core): SendDirectMessage (#23230) 2025-10-30 14:21:26 -03:00
Foe
bb2f2daacb
chore(Core/modules): necessary core changes for mod-eluna rename (#22962)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2025-10-23 12:52:13 +02:00
Andrew
eb2c6a445c
feat(Scripts/Commands): Implement debug zonestats command (#23249) 2025-10-16 07:24:23 -03:00
Takenbacon
5aa3161885
fix(Core/Object): Improve safety of visibility override containers (#23219) 2025-10-13 12:36:42 -03:00
Andrew
9ff1d3f06a
fix(Core/Map): Fix zone player count update on player removal (#23211) 2025-10-13 09:56:17 -03:00
天鹭
8e2e30328f
refactor(Core): Make ObjectGuid const (#23170)
* cherry-pick commit (a7883380ce)

Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
2025-10-12 23:13:12 -03:00
Takenbacon
22f93eaca6
fix(Core/Weather): Improve weather system thread safety (#22772)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-29 11:43:30 -03:00
Takenbacon
9e04cb9e37
fix(Core/Visibility): Add some safety to visibility grid container (#22837) 2025-09-08 06:51:41 -03:00
Takenbacon
a28824df85
feat(Core/Visibility): Far visibility worldobjects (#22828) 2025-09-07 08:02:03 -03:00
Takenbacon
af31aaa374
fix(Core/Maps): Move corpse expiration updates to map (#22780) 2025-09-03 20:29:15 -03:00
Takenbacon
2485ff7f5f
fix(Core/Transports): Improve static transport visibility (#22660) 2025-08-10 21:15:55 +02:00
Takenbacon
73317b2706
feat(Core/Grids): Remove WorldObject separation in grid containers (#22595) 2025-08-09 06:36:24 +02:00
Takenbacon
c97cee1e4f
feat(Core/Maps): Remove active objects nearby cell marking handling (#22585) 2025-08-08 16:07:56 -03:00
Takenbacon
1499aa51de
feat(Core/Visibility): Visibility improvements part 1 (#22624) 2025-08-07 16:17:45 +02:00
Takenbacon
cd87350a17
fix(Core/Grids): Fix corpse loading after a server restart (#22594) 2025-07-30 22:49:09 -03:00
Takenbacon
a77bd19104
feat(Core/Maps): Remove worldobject container switch functionality (#22586) 2025-07-29 09:18:07 -03:00
Takenbacon
1c3cbd3d9e
feat(Core/Maps): Improve map object updater (#22392) 2025-07-11 16:00:16 +02:00
Benjamin Jackson
52799d76f6
refactor(Core): Add definition file for area table entries. (#22054) 2025-05-09 15:48:02 +02:00
天鹿
a2a0bc51ab
fix(Core/Bones): Unable to create bones (#21635) 2025-03-03 22:11:56 +01:00
SaW
9f99e89bc3
fix(Core/Threading): Refactored Map class - some code optimization (#21288) 2025-02-24 15:49:54 -03:00
Takenbacon
d145b866a5
fix(Core/Maps): Fix instance factions (#21577) 2025-02-21 16:49:39 -03:00
Takenbacon
ee69a569c4
fix(Core/Grids): Grid improvements (#20955) 2025-02-14 22:11:27 +01:00
Andrew
062f9c4341
fix(Core/Map): Dynamic respawns: preserve original respawn timer and skip rares (#21440) 2025-02-14 11:30:59 +01:00
Andrew
16fa25b7a9
feat(Core/Maps): Implement dynamic respawn rates (#21417)
Co-authored-by: r00ty-tc <r00ty-tc@users.noreply.github.com>
Co-authored-by: Jelle Meeus <sogladev@gmail.com>
Co-authored-by Treeston

This is a partial cherry-pick of: https://github.com/TrinityCore/TrinityCore/pull/19056/commits/59db2eeea0a35028779fd76372ae06cc98c8086f
2025-02-12 15:06:42 -03:00
Andrew
7e29e023e8
fix(Core/Creature): Allow temp summons to respawn when despawning on … (#21363) 2025-02-10 08:46:31 +01:00
Andrew
79cbb00075
feat(Core/Creature): Implement HasFlagsExtra() helper to creature (#21362) 2025-02-08 14:07:04 -03:00
Kitzunu
47c5ff904f
refactor(Core/Disables): Convert from Namespace to Class Structure (#21109) 2025-02-01 22:48:52 +01:00
Andrew
d851f97f40
fix(Core/Instances): Ensure team is acquired before spawning creatures (#21221) 2025-01-21 20:13:22 -03:00
Kitzunu
12aa9dc12c
fix(Core/Misc): Resolve output formatting issues with fmt library (#21191) 2025-01-17 10:27:46 +01:00
Andrew
241d05f569
fix(Core/Map): Fix crash OnPlayerLeave() (#21155) 2025-01-13 17:33:05 -03:00
manstfu
bf4118362a
fix(Core/Group): CF Faction Assign & Leader Instance Faction (#21118)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2025-01-13 08:54:47 -03:00
EricksOliveira
2110f7cc84
Core/TempSummons: avoid use MoveInLineOfSight before InitSummon (#20999) 2024-12-22 09:03:28 +01:00
Francesco Borzì
a9f0f371e5
refactor(src/server/game): optimise imports (#20541) 2024-11-13 11:37:20 +01:00
Francesco Borzì
cb7e28df05
refactor(src/server/game/*): remove unused imports (big part 1) (#20310) 2024-10-27 10:25:40 +01: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
sudlud
60be029e4c
fix(Core/Scripting): fix OnBeforeCreateInstanceScript hook (#19252)
- to me this hook should obviously provide an option to overwrite
  the InstanceScript pointer
- this is e.g. beeing used by mod-eluna (but currently broken)
2024-07-03 14:54:45 -03:00
Kitzunu
f96d4c8670
Revert "Add (core\db): Support for Homebind Orientation (#13389)" (#19257)
* Revert "Add (core\db): Support for Homebind Orientation (#13389)"

This reverts commit 2e6f6e26da.

 Changes to be committed:
	modified:   src/server/database/Database/Implementation/CharacterDatabase.cpp
	modified:   src/server/game/DungeonFinding/LFGScripts.cpp
	modified:   src/server/game/Entities/Player/Player.cpp
	modified:   src/server/game/Entities/Player/Player.h
	modified:   src/server/game/Entities/Player/PlayerStorage.cpp
	modified:   src/server/game/Entities/Player/PlayerUpdates.cpp
	modified:   src/server/game/Handlers/CharacterHandler.cpp
	modified:   src/server/game/Handlers/MiscHandler.cpp
	modified:   src/server/game/Handlers/MovementHandler.cpp
	modified:   src/server/game/Maps/Map.cpp
	modified:   src/server/game/Spells/Spell.cpp
	modified:   src/server/scripts/Commands/cs_misc.cpp
	modified:   src/server/scripts/Commands/cs_tele.cpp
	modified:   src/server/scripts/Northrend/VaultOfArchavon/instance_vault_of_archavon.cpp

 Untracked files:
	data/sql/updates/pending_db_world/rev_1719945200692175000.sql

* Revert "Add (core\db): Support for Homebind Orientation (#13389)"

* whoops
2024-07-02 22:02:15 +02:00