38 Commits

Author SHA1 Message Date
Shauren
b7122c2f6a Core/PacketIO: Migration to PacketUtilities bit/string operations part 3 2025-05-22 13:46:45 +02:00
Shauren
d778d5ec7c Core/Misc: Include cleanup - remove MapUtils.h from Containers.h 2024-12-31 18:12:36 +01:00
ModoX
3aae692ec3 Core/Disables: Added DISABLE_TYPE_PHASE_AREA (#29997) 2024-06-04 00:44:47 +02:00
Shauren
0b5406dd88 Core/Conditions: Refactor ConditionMgr internals to get rid of separate containers for some condition source types 2024-01-11 20:56:24 +01:00
Shauren
35ab7dfa8e Core/Phasing: Fixed startup crash caused by accessing uninitialized global variable
Closes #29449
2023-11-22 00:21:48 +01:00
Shauren
f0a862e71b Core/Misc: Modernize comparison operators 2023-08-24 00:51:26 +02:00
Seyden
b5886f6a2d Core/Quests: Dont immediately update object visibility at PhaseShift and wait for the AI Hooks to be called in Player::RewardQuest (#28516) 2023-01-28 15:36:28 +01:00
Shauren
d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren
42fbcf2fc5 Core/Utils: Replace boost flat_set with our own 2023-01-06 16:51:01 +01:00
Shauren
704142f15a Core/Maps: Fixed retrieving terrain info when on child maps 2022-12-31 18:22:40 +01:00
Seyden
9ab0679781 Core/Objects: Implement FindNearestCreatureWithOptions helper function (#28488)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-26 20:13:13 +01:00
Shauren
71e885cd4b Core/Phasing: Fixed terrain swaps appearing on incorrect maps when player is added to a map wilth not meeting its condition but later condition gets satisfied 2022-08-14 12:42:21 +02:00
Shauren
16a06346ae Core/Maps: Move terrain data handling out of Map class
Partial port of cmangos/mangos-wotlk@ff5232c648
2022-07-23 19:13:33 +02:00
Shauren
ad4f4bfab7 Core/Misc: Minor game include cleanup 2022-02-13 00:49:10 +01:00
Shauren
f8ad7017dd Core/Misc: Move (or delete) constructors and destructors to .cpp files (avoids compiling them in every file that includes them) 2022-02-12 21:36:46 +01:00
Shauren
7044204130 Core/Objects: Cleanup SmoothPhasing code - move to separate files and better integrate it with visibility system 2022-01-29 20:35:25 +01:00
Seyden
a5c713eaf2 Core/Objects: Implement SmoothPhasing part of CreateObject and replacing visible objects 2022-01-29 20:35:25 +01:00
Shauren
6ca301e863 Core/Phasing: Fixed stack overflow happening when modifying vehicle passenger phases (looping player->vehicle->passenger(player)->vehicle...)
Closes #27599
2022-01-12 15:09:36 +01:00
Matan Shukry
8fabe5a3aa Core/Phasing: Implemented db spawns in personal phases (#26345)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-12-28 13:24:10 +01:00
Giacomo Pozzoni
6d5086da17 Core/Vehicle: Change vehicle accessories' phase according to the player on the vehicle (#23646)
* Core/Vehicle: Change vehicle accessories' phase according to the player on the vehicle

* Get the root vehicle to set the phase to all accessories. Attempt to get the accessories to stay mounted on the vehicle.

* Fix the accessories to stay mounted on the vehicle

(cherry picked from commit 15e85f882f)
2021-12-18 14:08:25 +01:00
funjoker
833e179985 Core/Misc: Add helper table phase_name and improve .npc info and .gps
.gps and .npc info now displays names for known phase names
2021-12-07 20:38:26 +01:00
Shauren
630adfec22 Core/Phasing: Fixed inverse phaseshift logic 2021-11-22 22:39:16 +01:00
Shauren
87ec98dd21 Fix nopch build 2021-02-27 10:36:57 +01:00
Shauren
ec9f5be6a6 Core/Phasing: Implemented setting personal guid on PhaseShift 2021-02-27 01:44:44 +01:00
Shauren
c9344c145a Core/Auras: Implemented SPELL_AURA_PHASE_ALWAYS_VISIBLE 2021-02-26 22:10:34 +01:00
Shauren
eba31dea27 Core/Maps: Improvements to terrain swap handling
* Fixed memory leak when unloading grids
* Handle child maps being entered
* Allow chaining more child maps (Draenor -> Tanaan Jungle -> Tanaan Jungle - No Hubs Phase)
2020-05-24 22:34:25 +02:00
Shauren
ec87d048b4 Core/Misc: Enum flag v3 - allow enabling flag operations directly after enum definition when inside namespaces 2020-04-27 09:06:49 +02:00
Shauren
0763844fb6 Core/Misc: Improve enum flags with type safe operators 2020-04-26 15:27:48 +02:00
Shauren
5526e14bcf Core/Entities: Fixed saving spawn difficulties to db for .npc add and .gob add (and other commands that modify creature/gameobject spawns table) 2020-04-03 17:41:48 +02:00
Aokromes
b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
vincent-michael
5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Shauren
a6fb448b44 Core/DataStores: Updated hotfix database structure
* Updated handling for removed db2s
2018-09-26 23:08:22 +02:00
Shauren
08193cf625 Core/Phasing: Fixed setting phaseshift flags on condition updates
Closes #21739
2018-04-12 00:13:10 +02:00
Shauren
1a8f143c55 Core/Misc: Build fix for some compilers
Closes #21705
2018-03-27 20:50:04 +02:00
Shauren
8f53ba3854 Core/Phasing: Rewrite GetTerrainMapId 2018-03-25 19:28:36 +03:00
Shauren
be0f2c297c Core/Maps: Implemented loading swapped maps 2018-03-25 19:28:36 +03:00
Shauren
bea7faa8f9 Core/Entities: Take terrain swaps into account when calculating LoS/height/area 2018-03-25 19:28:36 +03:00
Shauren
91be2332e2 Core/Entities: Phasing rewrite
* Optimized phase visibility checking
* Handle all phase flags

Closes #16758
Closes #21119
2018-03-25 19:28:36 +03:00