Commit Graph

292 Commits

Author SHA1 Message Date
bash 1ed9aee631 Merge remote-tracking branch 'upstream/master' into core_update_no_squash 2025-11-23 23:08:23 +01:00
Francesco Borzì 50b36e842a fix(docs/license): use GPLv2 as MaNGOS-based project (#23655) 2025-11-14 08:44:25 -03:00
bash 1aac4fbef6 Merge remote-tracking branch 'upstream/master' into feature/core_merge_10_2025
# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Movement/MovementGenerators/PointMovementGenerator.h
#	src/server/game/Server/WorldSession.cpp
#	src/server/game/Server/WorldSession.h
#	src/server/scripts/Northrend/Naxxramas/boss_gluth.cpp
#	src/server/scripts/Northrend/Naxxramas/boss_gothik.cpp
#	src/server/scripts/Northrend/Naxxramas/boss_grobbulus.cpp
#	src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp
#	src/server/scripts/Northrend/Naxxramas/boss_sapphiron.cpp
2025-10-19 22:34:18 +02:00
天鹭 8e2e30328f refactor(Core): Make ObjectGuid const (#23170)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/a7883380ce4c827db103b0c43faca6632c3d1f66)

Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
2025-10-12 23:13:12 -03:00
Benjamin Jackson 1c5f611d62 fix(Core/ObjectMgr): Force probabilities of creature displays during runtime if total probability is 0. (#23197) 2025-10-12 15:59:18 +02:00
bash c092fb1581 Merge branch 'azerothcore:master' into Playerbot 2025-09-20 22:17:46 +02:00
Benjamin Jackson 6dda22ec46 chore(Core/Handlers): Remove unused item query optimization. (#22971) 2025-09-20 09:25:51 -03:00
Yunfan Li 55bc26f505 Merge branch 'master' into Playerbot 2025-08-02 11:35:47 +08:00
Tereneckla 9ad7cef3c4 fix(Core/Items): count stats programatically instead of manually set (#22564)
Co-authored-by: heyitsbench <benjymansy123@gmail.com>
2025-08-01 10:36:01 -03:00
天鹭 0abb998529 refactor(Core): Clean (#22583) 2025-07-29 09:11:25 -03:00
Yunfan Li 21c2c3e0ee Merge branch 'master' into Playerbot 2025-07-25 21:18:51 +08:00
Kitzunu dc3d2def80 feat(Core/Load): Add debug logs for zone and area assignment (#22509) 2025-07-24 16:21:05 -03:00
Yunfan Li 475e5a42c4 Merge branch 'master' into Playerbot 2025-07-04 22:41:14 +08:00
Takenbacon fd262c3ab1 feat(Core/Config): Improvements to config caching (#21647) 2025-06-30 17:14:12 +02:00
Yunfan Li c3fbb2da20 Merge branch 'master' into Playerbot 2025-06-28 10:46:23 +08:00
Jelle Meeus e50a692fc7 fix(DB): set game_event_* tables to use smallint (#22309) 2025-06-17 18:49:18 +01:00
Yunfan Li 13edac562c Merge branch 'master' into Playerbot 2025-06-01 14:55:09 +08:00
Benjamin Jackson db18d5b035 refactor(Core): Use database tables for Shaman totems and Druid shapeshift forms. (#22104)
Co-authored-by: DoctorKraft <25483209+doctorkraft@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2025-05-27 14:40:57 +01:00
Yunfan Li 565019ed27 Merge branch 'master' into Playerbot 2025-03-14 21:37:02 +08:00
Kitzunu 231096132c refactor(Core/ServerMail): Refactor to Dedicated Manager Class with Multi-Item & Condition Support (#21590)
1. Core Cleanup
    - Move all ServerMail logic from `ObjectMgr` into a new dedicated `ServerMailMgr` class
    - Move faction logic for money from SendServerMail into the script
2. Separation of items into a new table
    - Create a new `mail_server_template_items` table
    - Allows to send multiple items in one mail
    - Separate items per faction Alliance/Horde
3. Separation of conditions into a new table
    - Create a new `mail_server_template_conditions` table
    - Allows to use multiple conditions for one mail
    - Available condition types
        - Minimum playtime (playerLevel >= condition)
        - Minimum playtime (playerPlayTime >= condition)
        - Rewarded quest
        - Earned achievement
        - Earned reputation (playerReputation >= conditionState)
        - Faction
        - Race
        - Class
4. Updated ServerMail loading
    - Move item and condition loading to their own functions
        - LoadMailServerTemplateItems()
        - LoadMailServerTemplateConditions()
5. Reworked eligibility check
    - Player needs to pass all conditions to be eligible for the mail
    - All players are automatically eligible if no conditions exist for a server mail template.
6. Updated foreign keys
    - For table `mail_server_character`, `mail_server_template_conditions`, `mail_server_template_items` foreign key with on delete cascade is added for automatic removal of entries if mail_server_template.id is deleted.
7. Database changes
    - See the PR
2025-03-09 09:18:01 +01:00
Yunfan Li 34811a047a Merge branch 'master' into Playerbot 2025-03-04 21:57:19 +08:00
天鹿 82bc814858 fix(Core/PvP): Sometimes mobs and objects fail to spawn in OutdoorPvP (#21636) 2025-03-03 22:12:54 +01:00
Kitzunu 5d32676193 fix(Core/Misc): Fix NextPage Data Type in PageText Structure and Improve Logging Messages (#21586) 2025-02-22 21:58:21 -03:00
Yunfan Li bd0302605a Merge branch 'master' into Playerbot_20250219 2025-02-22 10:36:10 +08:00
Takenbacon 4cd1ed2181 refactor(Core/Server): Improvements to antidos opcode handling (#21502) 2025-02-21 07:17:34 +01:00
Yunfan Li 7d431dc796 Merge branch 'master' into Playerbot 2025-02-19 22:29:36 +08:00
Takenbacon ee69a569c4 fix(Core/Grids): Grid improvements (#20955) 2025-02-14 22:11:27 +01:00
Yunfan Li 41415bb3c3 Merge branch 'master' into Playerbot 2025-02-11 22:35:57 +08:00
Andrew 79cbb00075 feat(Core/Creature): Implement HasFlagsExtra() helper to creature (#21362) 2025-02-08 14:07:04 -03:00
Yunfan Li de3c2b553e Merge branch 'master' into Playerbot 2025-02-04 23:40:06 +08:00
Kitzunu 47c5ff904f refactor(Core/Disables): Convert from Namespace to Class Structure (#21109) 2025-02-01 22:48:52 +01:00
Kitzunu 9e9a2fe5e3 refactor(Core/ObjectMgr): Change GetAcoreString from char const* to s… (#21213)
...ring
2025-02-01 22:46:42 +01:00
Yunfan Li e5c67bd47d Merge branch 'master' into Playerbot 2025-01-31 18:29:34 +08:00
Grimdhex edf2959a26 feat(Core/Creatures): implement a sparring system (#19824) 2025-01-26 09:40:37 +01:00
Yunfan Li cf035b5e5e Merge branch 'master' into Playerbot 2025-01-23 23:23:53 +08:00
Kitzunu 9c43adc445 fix(Core/ObjectMgr): Potential crash in GetModuleString() (#21211) 2025-01-19 20:31:54 +01:00
Yunfan Li 36987b8a96 Merge branch 'master' into Playerbot 2025-01-09 19:56:11 +08:00
Kitzunu 4b8dca1ea2 fix(Core/Misc): Correct some fmt logs (#21106) 2025-01-07 06:08:19 +01:00
Yunfan Li 889b509313 Merge branch 'master' into Playerbot 2024-12-05 00:08:25 +08:00
Kitzunu 5e4f6ac576 fix(Script/Commands): tele add should only check exact match (#20785)
* fix(Script/Commands): tele add should only check exact match

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/20268

* better describe the variable
2024-11-30 20:06:26 -03:00
Yunfan Li 1294d79764 Merge branch 'master' into Playerbot 2024-11-25 23:22:31 +08:00
sudlud b2c04603f7 feat(Core/SmartAI): add startup error for non existent SmartAI entries (#20694) 2024-11-24 21:25:02 +01:00
Yunfan Li fce06946e1 Merge branch 'master' into Playerbot 2024-11-16 13:15:00 +08:00
Jelle Meeus 3565e4a9eb feat(Core/WorldState): improved WorldState scripting (#20141)
* implement world state script

based on
https://github.com/cmangos/mangos-wotlk/commit/0b87ca9d9edf2d4752a3c0f8e9cf85c6689ca861

Co-authored-by: killerwife <killerwife@gmail.com>

* refactor to use onleave and onenter instead of spell_area

allows players to right click remove adal's buff

* add MapMgr.h

* refactor: use condition enum instead of uint32, prefix WORLD_STATE where needed

* remove lock from WorldState::Update

sWorldState->Update() is only called from World::Update

* remove unsafe SmartAI action of setWorldState

---------

Co-authored-by: killerwife <killerwife@gmail.com>
2024-11-12 12:15:27 -03:00
Yunfan Li abd9b4ebb8 Merge branch 'master' into Playerbot 2024-10-30 21:43:42 +08:00
Francesco Borzì 2ce2c8cf3a refactor(src/server/game/*): remove unused imports (big part 3) (#20315) 2024-10-27 13:10:28 +01:00
Francesco Borzì 2c344fc127 refactor(src/server/game/*): remove unused imports (big part 2) (#20311) 2024-10-27 05:06:14 +01:00
Yunfan Li 2e37c1ff1d Merge branch 'master' into Playerbot 2024-10-21 11:43:19 +08:00
Jelle Meeus 859a42a41e fix(Core/Vehicles): feat vehicle seat addon, vehicle enter/exit positions (#20082)
* implement initial vehicle_seat_addon

Co-authored-by: Ovah <dreadkiller@gmx.de>

* add more vehicle_seat_addon data

* make exiting passenger visible

fixes "immediate despawn" of travelers mammoth

* style, update comments

* remove hacked pos relocate

* remove sending MSG_MOVE_ROOT/UNROOT on Ack

* set and unset UNIT_NPC_FLAG_PLAYER_VEHICLE on init/entry

* ulduar demolisher: remove flag correction and no longer needed usableseat

* fixup! implement initial vehicle_seat_addon

* fixup! fixup! implement initial vehicle_seat_addon

* re-add AddPassenger Flame Leviathan hack

was commented by mistake

* Update rev_1725993194571320983.sql

add missing ticks

---------

Co-authored-by: Ovah <dreadkiller@gmx.de>
2024-10-11 07:08:14 +02:00
Yunfan Li 6eb5070cbc Merge branch 'master' into Playerbot 2024-10-04 21:57:35 +08:00