Commit Graph

23768 Commits

Author SHA1 Message Date
Shauren
dd1847bd8f Core/Mail: Moved gold check closer to where it is taken away
(cherry picked from commit 1dcb2904d5)
2023-11-07 19:16:06 +01:00
Shauren
63cbef9e89 Core/Battlefield: Fixed using invalidated iterator when a player queued for wintergrasp is inside a battleground
Closes #29405
2023-11-02 14:17:43 +01:00
Gildor
01e684a7b0 Core/Loot: Check bank for unique loot items when determining loot roll eligibility (#29373) 2023-10-29 11:04:02 +01:00
Shauren
54b13c7e4c Core/Spells: Make SpellEffectInfo not copyable
(cherry picked from commit 858c393d07)
2023-10-26 16:36:33 +02:00
Shauren
d5b64a0bb2 Core/Misc: Remove incorrect (and unused) equality operator overloads from LinkedListHead::Iterator class
(cherry picked from commit a3702cc526)
2023-10-18 20:21:53 +02:00
Shauren
966936b01a Core/Misc: Fixed thread-unsafe access to list of objects that should be spawned in a cell
Closes #29372

(cherry picked from commit 7b6589c1ec)
2023-10-17 15:57:03 +02:00
Shauren
d028bb0e37 Core/Auras: Implemented SPELL_ATTR7_DISABLE_AURA_WHILE_DEAD (suppress aura applications while dead without removing the aura)
(cherry picked from commit 0f7dd4eadf)
2023-10-15 14:20:50 +02:00
Shauren
a85dcb6fc1 Core/Auras: Registering a new owned aura will now search existing owned auras instead of applied auras to check for unstackable one
Closes #22234

(cherry picked from commit dc661a34b1)
2023-10-14 16:55:38 +02:00
robinsch
2df1bc3ec1 Core/Object: Remove casts in WorldObject::setActive 2023-10-13 23:03:06 +02:00
Shauren
163c674adb Core/Objects: Remove restriction on what object types can be set as active
(cherry picked from commit 3031fbb63b)
2023-10-13 23:03:06 +02:00
Ovahlord
b3dbc8bd6d Core/World: refactored locale detection to resolve a ill-defined for loop warning 2023-09-26 23:18:02 +02:00
Ovahlord
d11d992df9 Core/Player: return player corpse locations by reference instead of creating copies 2023-09-26 23:18:02 +02:00
Ovahlord
a5217f59b2 Core/World: added underlying types to world config enums 2023-09-26 23:18:02 +02:00
Giacomo Pozzoni
fe2da02cc6 Core/Battlegrounds: Fix group loot (#29300) 2023-09-23 20:25:25 +02:00
M'Dic
f746c7f7ff Core/Groups: Reduce differences between branches (define naming) (#29332) 2023-09-19 21:26:27 +02:00
Gildor
edb00d4f74 Core/Pets: Avoid loading creature_addon/creature_template_addon (#29331)
*Also removed spawnId when the pet is created
2023-09-18 11:48:52 +02:00
Shauren
6b9899e907 Core/Misc: mac build fix
(cherry picked from commit 752309fbe3)
2023-09-17 01:07:49 +02:00
Shauren
08eac7a09a Core/Misc: Silence compile warning in boost::process with version 1.83
(cherry picked from commit d8c98579d4)
2023-09-13 09:25:35 +02:00
Shauren
79e2f77d44 Core/Misc: Silence a false positive warning 2023-09-01 12:15:17 +02:00
Shauren
74bfc38621 Core/Vehicles: Fixed crash happening if a vehicle despawns during handling of control vehicle aura removal
Closes #29290

(cherry picked from commit 2b54376d65)
2023-08-31 15:46:22 +02:00
Gildor
61eba44d4a Scripts/Trial of the Crusader: Update Read and Write Save Data (#29293) 2023-08-29 21:59:34 +02:00
Shauren
8e7b6c54e4 Core/Logging: Fixed missing log format changes
(cherry picked from commit 150ba27eb1)
2023-08-27 12:51:53 +02:00
Shauren
451314241d Core/Misc: Modernize comparison operators
(cherry picked from commit f0a862e71b)
2023-08-24 11:48:45 +02:00
Shauren
343d09bc95 Core/Battlefields: Added missing virtual destructor (and delete copy and move operations) 2023-08-23 16:32:15 +02:00
Shauren
edca91b408 Core/Misc: Add missing virtual destructors
(cherry picked from commit f4297aa3c6)
2023-08-23 14:25:14 +02:00
Shauren
ca03ecf3e6 Build: Support ASAN on msvc
(cherry picked from commit 0a0b420d86)
2023-08-23 14:23:56 +02:00
Shauren
6a304a82b1 Core/Units: Fixed possible use after free in ThreatManager
Closes #28830

(cherry picked from commit 3e3968b63c)
2023-08-23 11:04:14 +02:00
Shauren
8d43d2bafc Core/Movement: Fixed use after free in WaypointMovementGenerator
Closes #29274
2023-08-22 19:34:21 +02:00
Kelno
1bea4aab45 Core/EventMap: Refactor and modernize EventMap (#29183) 2023-08-19 23:57:57 +02:00
Shauren
deec17d8ec Core/Logging: Fixed a few missed log format statements 2023-08-17 11:15:15 +02:00
Shauren
26836f8655 Core/Logging: Minor compile time reducing refactor of log message formatting
(cherry picked from commit 576ca241ec)
2023-08-15 22:03:47 +02:00
Shauren
4e6118c919 Core/Misc: Replace std::abort with our ABORT macro
* libmysql is not a well behaved library on windows, it installs its own SIGABRT handler every time a new connection is opened, overriding our own

(cherry picked from commit 09dea76fb5)
2023-08-15 22:02:39 +02:00
Shauren
24fc0dcb1e Core/DBLayer: Relaxed restrictions on which Field class member function can be used to access column value from "strict match" to "must not truncate"
(cherry picked from commit eadafb0347)
2023-08-15 22:00:22 +02:00
Shauren
a4299c2a4b Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo
(cherry picked from commit 3260b94dd6)
2023-08-15 21:59:52 +02:00
Shauren
b9201d3c07 Dep/fmt: Upgrade to 9.1.0
(cherry picked from commit 17b20a3353)
2023-08-15 20:11:02 +02:00
Shauren
aaa6e73c8c Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
(cherry picked from commit d791afae1d)
2023-08-15 20:10:04 +02:00
Shauren
825c697a76 Core/Misc: Removed structure bitfield definitions that don't do anything 2023-08-15 13:00:43 +02:00
Shauren
3144566584 Core/Misc: Include cleanup, 2023 edition
(cherry picked from commit 92ed5e8af1)
2023-08-12 17:56:16 +02:00
Shauren
27cd5a90f4 Core/Misc: Replace enable_if overload selection with if constexpr
(cherry picked from commit a53e4a5756)
2023-08-12 17:56:16 +02:00
Shauren
d251ab647d Core/Misc: Migrate our c++20 advstd to standard features
(cherry picked from commit 7830e5a7a1)
2023-08-12 17:56:16 +02:00
Shauren
777b001d2d Core/Misc: Use boost/circular_buffer forward declaration headers in our headers
(cherry picked from commit 1afec8be63)
2023-08-12 17:56:16 +02:00
Shauren
ad3fc81db9 Core/Misc: Add missing Containers.h include where neccessary 2023-08-12 17:56:16 +02:00
Shauren
cccc062ea0 Core/Misc: Remove boost::heap::fibonacci_heap from header files
(cherry picked from commit e8e330addd)
2023-08-12 17:56:15 +02:00
Shauren
f5a2e2ae13 Core/Misc: Replaced boost::container::static_vector in packet classes with plain vector with custom static storage allocatlr
(cherry picked from commit b65c3f5f4a)
2023-08-12 17:56:15 +02:00
Shauren
30adff16ae Core/Utils: Replace boost flat_set with our own
(cherry picked from commit 42fbcf2fc5)
2023-08-12 17:56:15 +02:00
Shauren
b8dc87a0e0 Core/Spells: Hide spell effect immunity info implementation details
(cherry picked from commit dcb589946b)
2023-08-12 17:56:11 +02:00
Shauren
73e7f0fe6d Core/Misc: Added a include hack for msvc <chrono> to use only c++17 bits from it
(cherry picked from commit 585900f42d)
2023-08-12 14:27:25 +02:00
Shauren
203bc3afa0 Core/Threading: Modernize ProducerConsumerQueue a bit to fix GCC build
Closes #28607

(cherry picked from commit 85d5f4bc06)
2023-08-12 14:24:29 +02:00
Shauren
b7287e85e4 Core/Misc: Fixed deprecation warnings for c++20
(cherry picked from commit ba9bbbc9d0)
2023-08-12 14:24:24 +02:00
Shauren
f9033a5dbd Scripts/Forge of Souls: Fixed achievement_bronjahm_soul_power script registration 2023-07-19 13:45:17 +02:00