Commit Graph

29556 Commits

Author SHA1 Message Date
Shauren
b8b2714c25 Core/Conditions: Extend circular references check for player condition conditions to also handle two different conditions referencing each other
(cherry picked from commit 39263027d4)
2024-03-28 20:36:54 +01:00
Meji
46b35d3082 Core/Conditions: Added CONDITION_SOURCE_TYPE_PLAYER_CONDITION (#29832)
(cherry picked from commit 4913d027bf)
2024-03-28 20:36:23 +01:00
Jeremy
8589ece4f4 Core/GameObjects: Implement destructible_hitpoint table to store health info about destructible buildings (#29836)
(cherry picked from commit 1f855ef563)
2024-03-28 20:28:14 +01:00
lee
a9813ee6bb Build: Fix Linux aarch64 GCC build (#29831)
(cherry picked from commit 370685457e)
(cherry picked from commit 5c4b1ace41)
2024-03-28 20:27:25 +01:00
Shauren
8a673d7a0f Core/Maps: Initialize instance faction using group leader (if available) instead of the first player entering the map
(cherry picked from commit 679bf966d6)
2024-03-28 20:27:15 +01:00
thesillyone
ab19c7d786 Tools/mmaps_generator: Only initialize memory for inds mesh when it will be read (#29795)
* this change does NOT require re-generating mmaps

(cherry picked from commit a59f7351dd)
2024-03-28 20:25:00 +01:00
Shauren
04e7c62341 Core/vmaps: Improved WMO detection for group models that don't have floor
(cherry picked from commit 28c9474337)
2024-03-28 20:24:09 +01:00
Meji
56f9e134fb Core/GameObjects: Added dynamic highlight for GAMEOBJECT_TYPE_SPELL_FOCUS (#29825)
(cherry picked from commit 6a80bebcb5)
2024-03-28 20:23:28 +01:00
Shauren
18b7199a47 Core/Players: Slightly improve neutral player faction support
(cherry picked from commit 94b78ebc8b)
2024-03-28 20:23:12 +01:00
aquadeus
98cb0b4eaf Core/Players: Fix console errors of wrong teamid for neutral pandaren race
(cherry picked from commit aac5581bfc)
2024-03-28 20:22:55 +01:00
Shauren
7a6d78c90a Core/Loot: Fixed crashes when generating loot on map that has no MapDifficulty data
Closes #29829

(cherry picked from commit 303dbd3393)
2024-03-28 20:22:38 +01:00
Shauren
7239ea65ee warning fix
(cherry picked from commit 6cd4607a65)
2024-03-28 20:22:14 +01:00
Shauren
47e27f6471 Tools/vmap_extractor: Support new 9.2 wmo group splits (child groups should inherit their parent wmo group id)
(cherry picked from commit 8d45d1dd48)
2024-03-28 20:22:03 +01:00
Shauren
581c3e330e Fix build with openssl 1.1.1
(cherry picked from commit 28596792a8)
2024-03-28 20:21:20 +01:00
funjoker
e769af1044 Core: port sneaky fixes from "Core: Updated to 10.2.6.53840" 2024-03-28 20:20:04 +01:00
funjoker
e2f5fb5eff Core/DB2: Fix fields count for Vignette.db2 2024-03-25 21:50:36 +01:00
Shauren
b8bdce306a Core/Logging: Fix intellisense errors - people don't like it when code glows red without a reason
(cherry picked from commit e99482ce9b)
2024-03-25 20:37:05 +01:00
Shauren
c6cff20258 Core/Logging: Improved generated code for log statements (length of text is computed at compile time)
(cherry picked from commit e121ed81d1)
2024-03-25 20:22:58 +01:00
Shauren
67577f8043 Core/Scripts: Removed script calls from constructors and destructors
(cherry picked from commit 783f9c0ea3)
2024-03-25 20:22:48 +01:00
Shauren
11f7768773 Core/Objects: Cook the copied pasta
(cherry picked from commit 6224036efd)
2024-03-25 20:22:36 +01:00
Shauren
6f9a5933a5 Core/Objects: Added ToWorldObject and ToItem
(cherry picked from commit 6f6af6a1a1)
2024-03-25 20:22:23 +01:00
Shauren
9072664038 Core/Objects: Rename Object::m_isWorldObject and related functions to avoid conflicting with "WorldObject" class name
(cherry picked from commit 9402c66e84)
2024-03-25 20:22:13 +01:00
Shauren
6472446440 Core/Misc: Use our new unique_trackable_ptr for various classes exposed to scripts (not actually used anywhere currently)
(cherry picked from commit 4779fa5048)
2024-03-25 20:21:24 +01:00
Shauren
382d67622f Core/vmaps: Reset BIH::bounds on tree rebuilds
(cherry picked from commit 18200e1b88)
2024-03-25 20:18:58 +01:00
Shauren
fe9c30f404 Core/Utils: unique_trackable_ptr improvements
* Added comparison operators
* Added type casting helper functions

(cherry picked from commit f690b69338)
2024-03-25 20:18:39 +01:00
Shauren
22bf2daaf7 Core/Utils: Added missing member access in unique_trackable_ptr move assignment operator
(cherry picked from commit 6b255efb2d)
2024-03-25 20:18:23 +01:00
Shauren
0ddc76d8a5 Core/Movement: FIxed followPathBackwardsFromEndToStart parameter of MotionMaster::MovePath
(cherry picked from commit ca656f4254)
2024-03-25 20:17:53 +01:00
Shauren
ee7d762879 Core/SmartAI: Load paths by their id now that SAI doesn't use a separate database table as waypoints source
(cherry picked from commit b93791255c)
2024-03-25 20:17:44 +01:00
Shauren
5ce300c395 Core/Movement: Minor refactor for WaypointManager data loading
(cherry picked from commit a8cc8725b1)
2024-03-25 20:17:35 +01:00
Shauren
fd73aad559 Core/Movement: Removed a possible lifetime trap when passing a custom WaypointPath to MovePath
(cherry picked from commit 5d29fc0b99)
2024-03-25 20:17:22 +01:00
Shauren
0745da9fab Core/Movement: Make MovementGenerator not copyable and movable
(cherry picked from commit 6b6a13d9c7)
2024-03-25 20:17:13 +01:00
Shauren
ac61b93d1c Core/Movement: Removed default arg values from MovementGenerator Pause and Resume functions
(cherry picked from commit 6c533482c6)
2024-03-25 20:17:03 +01:00
Shauren
b45f7583c7 Fix tests build
(cherry picked from commit 1f3ebbb23c)
2024-03-25 20:16:47 +01:00
Shauren
ed11978fb8 Core/Misc: Fixed windows nopch build
(cherry picked from commit 261a237cfa)
2024-03-25 20:16:37 +01:00
Shauren
8acf79193f Core/Utils: Added a custom smart pointer type unique_trackable_ptr - a specialized variant of std::shared_ptr that enforces unique ownership
* This is intended to be used by external code unable to track object lifetime such as custom scripting engines

(cherry picked from commit 32e54b6bd1)
2024-03-25 20:16:28 +01:00
Shauren
97df861c52 Core/Auras: Update visible aura immediately during spell cast instead of waiting for next update tick
(cherry picked from commit 62dc916184)
2024-03-25 20:12:53 +01:00
Shauren
9dca7a8041 Fix GCC build
(cherry picked from commit 2913263813)
2024-03-25 20:12:41 +01:00
Shauren
9a0414c79e Core/Objects: Implemented vignettes
(cherry picked from commit fccf6fb72b)
2024-03-25 20:12:21 +01:00
Shauren
74219b4690 Core/Players: Extend Player::SendInitialVisiblePackets to work with all WorldObject types
(cherry picked from commit 1439535c6a)
2024-03-24 21:59:42 +01:00
funjoker
1d894f09cd Core: Updated to 4.4.0.53863 2024-03-23 00:10:14 +01:00
Ovahlord
4057f3e38e Core/PacketIO: added opcode handlers for new arena cmsg opcodes 2024-03-19 20:38:48 +01:00
Ovahlord
a8085016f2 Core/Units: updated armor reduction calculations for Cataclysm 2024-03-19 20:32:32 +01:00
Ovahlord
e824349484 Core/Packets: properly initialize RewardDisplaySpell array in QuestInfo struct 2024-03-19 20:17:06 +01:00
Ovahlord
88ff1e7cff Core/Packets: fixed CMSG_SET_ACTION_BUTTON packet structure and downgraded player actions for classic 2024-03-19 20:08:00 +01:00
Ovahlord
cc6fb98595 Scripts/Commands: fixed build 2024-03-19 20:02:35 +01:00
Ovahlord
30bf56de69 Core/Auras: updated spell aura flags and implemented AFLAG_CANCELABLE and AFLAG_PASSIVE (#29634)
(cherry picked from commit a629fe5cda)
2024-03-14 22:38:33 +01:00
Ovahlord
445be29cc0 Core/Packets: fixed SMSG_ITEM_PUSH_RESULT packet structure 2024-03-14 22:28:56 +01:00
Ovahlord
123d515c2e Core/Packets: fixed SMSG_SPELL_START and SMSG_SPELL_GO packet structures
* fixed a client crash caused by LevelUpInfo
2024-03-14 22:23:20 +01:00
Ovahlord
9daf5e66e0 Core/Packets: fixed structure of SpellCastVisual 2024-03-14 21:33:01 +01:00
Ovahlord
7bffaa8d34 Core/Players: fixed a warning in spirit debug output 2024-03-14 21:10:52 +01:00