Commit Graph

29623 Commits

Author SHA1 Message Date
Shauren
d4e18bdef4 Core/Movement: Refactor MoveSplineFlag to get rid of undefined behavior (cast in raw()) and unify enum to string formatting for it
(cherry picked from commit a02804fa02)
2024-05-28 16:44:09 +02:00
Shauren
10df0cba8e Core/Units: Name new spline flag and linked npc flag
(cherry picked from commit 8c0b031c07)
2024-05-28 16:43:58 +02:00
Shauren
78805e49c0 Core/Misc: Support boost 1.85
(cherry picked from commit cfa838df5d)
2024-05-28 16:43:54 +02:00
Aqua Deus
3f6153f9d9 Scripts/Spells: Add new script for spells with feign death with all flags except uninteractible (#29922)
(cherry picked from commit f4ef6f769b)
2024-05-28 16:43:50 +02:00
ModoX
4a18194fc0 Core/Movement: Fixed data sent in cyclic spline related packets
(cherry picked from commit a28facb956)
2024-05-28 16:43:38 +02:00
Shauren
cbcbe5d965 Core/Movement: Switch to uncompressed paths in spline packets automatically when too large or too small delta between points is detected
(cherry picked from commit 377b51f768)
2024-05-28 16:43:34 +02:00
Shauren
1c565c0db1 Core/Movement: Implemented alternative method of smoothing waypoint paths (send new point 1.5 before arrival) and make that the default
* Sending whole path at once is still supported with WaypointPathFlags::ExactSplinePath

(cherry picked from commit cf1ab7b414)
2024-05-28 16:43:31 +02:00
ModoX
2a84a9e090 Core/Spells: Fixed SpellInfo::GetSpellXSpellVisualId for nonplayer casters (#29927)
(cherry picked from commit 8d8a54db25)
2024-05-28 16:43:22 +02:00
Shauren
3241bcfdce Core/Movement: Merge waypoints without delay into a single movement packet
(cherry picked from commit 204f65684c)
2024-05-28 16:43:17 +02:00
Shauren
0cea1c1dfb Core/Movement: Added functions to MoveSplineInit to enable steering flag
(cherry picked from commit cf4c3b5467)
2024-05-28 16:43:13 +02:00
Shauren
651f71b138 Core/Movement: Store delay in WaypointNode as Milliseconds instead of raw integer and revert c5097114d1
(cherry picked from commit e1f43900d1)
2024-05-28 16:43:09 +02:00
Shauren
8f50096d92 Core/Movement: Minor cleanup in WaypointMovementGenerator - local variable for GetPath() (not a true trivial accessor)
(cherry picked from commit ff9db332f5)
2024-05-28 16:43:05 +02:00
Shauren
d5d90d7849 Core/Movement: Fixed pauses on waypoint movement happening at wrong times when FollowPathBackwardsFromEndToStart is set and creature is going from end to start
(cherry picked from commit c5097114d1)
2024-05-28 16:43:01 +02:00
Shauren
b1c0c0a5ce Core/Movement: Minor refactors in WaypointMovementGenerator
* Removed unneccessary _loadedFromDB member (handled by variant index already)
* Apply some const
* Replace stringstream formatting in GetDebugInfo with Trinity::StringFormat
* Moved MovementGeneratorCreator::Create implementations to source files whose movement they create

(cherry picked from commit b5dceafad7)
2024-05-28 16:42:57 +02:00
Shauren
6ab79caf0f Core/Pathfinding: Allow using PathGenerator with any source location, not only objects current position
(cherry picked from commit e5beb25d25)
2024-05-28 16:42:54 +02:00
Jeremy
d80fb502f6 Scripts/Battlegrounds: Implement Twin Peaks (#29924)
Closes #8894

(cherry picked from commit 091094aa13)
2024-05-28 16:42:50 +02:00
Shauren
a57e30b1f5 Core/Achievements: Fixed achievement SMSG_ACHIEVEMENT_EARNED not being sent to self
(cherry picked from commit 0384d90663)
2024-05-28 16:42:41 +02:00
Shauren
9fd90aaa4f Core/SAI: Implement waiting for actions on action list to finish before continuing the action list
This is enabled by setting event_flags to SMART_EVENT_FLAG_ACTIONLIST_WAITS on the action that is waited for

Supported actions:
* SMART_ACTION_TALK
* SMART_ACTION_SIMPLE_TALK
* SMART_ACTION_CAST
* SMART_ACTION_SELF_CAST
* SMART_ACTION_INVOKER_CAST
* SMART_ACTION_MOVE_OFFSET
* SMART_ACTION_WP_START
* SMART_ACTION_MOVE_TO_POS
* SMART_ACTION_CROSS_CAST
* SMART_ACTION_ACTIVATE_TAXI
* SMART_ACTION_JUMP_TO_POS
* SMART_ACTION_START_CLOSEST_WAYPOINT

(cherry picked from commit 5dfac0ef14)
2024-05-28 16:42:31 +02:00
Shauren
998068e8ec Core/Conditions: Added startup error log for conditions using invalid effect index on CONDITION_AURA
(cherry picked from commit 325cfd047d)
2024-05-28 16:42:22 +02:00
Shauren
139d80373d Core/Items: Implemented CreateTime item field and changed refund/soulbound trade timers to also count time offline
(cherry picked from commit 69da702b93)

# Conflicts:
#	sql/base/characters_database.sql
2024-05-28 16:41:52 +02:00
Gosha
a1d892195f Core/Items: Fix loading secondaryItemModifiedAppearanceSpec5 (#29917)
(cherry picked from commit 8c274a8e8d)
2024-05-28 16:41:30 +02:00
Shauren
8b6df512bb Core/Spells: Fixed TARGET_UNIT_AREA_THREAT_LIST and TARGET_UNIT_AREA_TAP_LIST
(cherry picked from commit 66abcaff14)
2024-05-28 16:41:09 +02:00
Meji
2c56ee9ce1 Core/SAI: Added support for StringIds to creature and gameobject targets (#29910)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
(cherry picked from commit 2ce4068459)
2024-05-28 16:40:53 +02:00
Shauren
125b6d2ed7 Core/Entities: Fixed m_stringIds[0] invalidation when reloading creature_template with a gm command
(cherry picked from commit bec5bdb61b)
2024-05-28 16:40:48 +02:00
ModoX
32243eb1c1 Core/Entities: Added possibility to inherit StringIds from other entities (#29908)
* also implicitly do so for personal summons

(cherry picked from commit 88bbd27f8d)
2024-05-28 16:40:42 +02:00
Shauren
2d1c2c79ab Core/DBLayer: Support retrieving DATE/DATETIME/TIMESTAMP column values directly without casting in sql
(cherry picked from commit 404bb5b3c2)
2024-05-28 16:40:35 +02:00
ModoX
b60a8b2095 Core/Entities: nopch build fix
(cherry picked from commit 58839b7c18)
2024-05-28 16:40:27 +02:00
ModoX
ad5013ebf6 Core/Entities: Update StringId assignment to use StringIdType
(cherry picked from commit 9959a1373a)
2024-05-28 16:40:23 +02:00
ModoX
3db82077c9 Core/Entities: Added GetStringId helper methods
(cherry picked from commit 5cea37153e)
2024-05-28 16:40:19 +02:00
Shauren
0b57e7980d build fix
(cherry picked from commit b1b16cc139)
2024-05-28 16:38:01 +02:00
Shauren
d34946dc3a Core/Auras: Fixed SPELL_ATTR10_ROLLING_PERIODIC for auras that have 0 base amount and only scale from spell/attack power
(cherry picked from commit 3545285ad7)
2024-05-28 16:37:56 +02:00
Meji
2b4a2e82f7 Core/Gameobjects: Changed the highlight logic for GAMEOBJECT_TYPE_GATHERING_NODE (#29896)
(cherry picked from commit 4f5d1737a3)
2024-05-28 16:37:31 +02:00
RioMcBoo
ab6a6e063c Core/Misc: Fixed forced declined names initialization (#29898)
(cherry picked from commit 4dd200b9e5)
(cherry picked from commit 958b4726b6)
2024-05-28 16:37:26 +02:00
Meji
661bd723c6 Core/Quests: Update phaseshift when taking or abandoning quests (#29901)
(cherry picked from commit c90dbeb648)
2024-05-28 16:37:21 +02:00
Shauren
5c1021046a Core/Movement: Ensure land and takeoff animations even if gravity enabled/disabled state is not what spline generator expects
(cherry picked from commit be3ae90dc4)
2024-05-28 16:35:03 +02:00
Shauren
093546f22c Core/Scripts: Integrate new ActionResultSetter with movement generators and spells
(cherry picked from commit b265c49977)
2024-05-28 16:34:58 +02:00
Shauren
3438404575 Core/Scripts: Added basic types for async script actions
(cherry picked from commit eb9375b0b1)
2024-05-28 16:33:37 +02:00
Shauren
4a37d068b8 Core/OutdoorPvP: Fixed shutdown crash
(cherry picked from commit d079a7e267)
2024-05-28 16:33:32 +02:00
Shauren
eb4c688bc5 Core/Misc: Replace shared_ptr with unique_ptr with deleter for cleanups in main() functions
(cherry picked from commit 7df138ba2b)
2024-05-28 16:33:28 +02:00
Shauren
fbe4fee3c3 Core/Movement: Allow overriding speed for taxi movement generator
(cherry picked from commit 038f995ad6)
2024-05-28 16:33:23 +02:00
Shauren
03d40c8afe Core/Networking: Fixed Socket::DelayedCloseSocket not working if write queue is empty when its called on linux and mac
Closes #29887

(cherry picked from commit f847cd4eeb)
2024-05-28 16:33:14 +02:00
Shauren
3bba97dd52 Fix codestyle
(cherry picked from commit f1b7ca1a91)
2024-05-28 16:33:10 +02:00
Shauren
3390bb8078 Core/SAI: Allow gameobjects to be targeted by spell casts
(cherry picked from commit 22e43917ab)
2024-05-28 16:33:06 +02:00
Jeremy
e6af1c591c Scripts/Battleground: Implemented Battle for Gilneas (#29877)
(cherry picked from commit 90f390f9b8)
2024-05-28 16:32:34 +02:00
ModoX
4ba229ad2c Core/Movement: Added Velocity field to waypoint_path table (#29837)
(cherry picked from commit e8f7d41536)

# Conflicts:
#	src/server/scripts/BrokenIsles/TrialOfValor/boss_guarm.cpp
#	src/server/scripts/BrokenIsles/zone_mardum.cpp
2024-05-28 16:32:28 +02:00
Meji
a06f071f98 Core/Conditions: Fixed evaluation of CurrentPvpFaction outside arenas or battlegrounds (#29882)
(cherry picked from commit 47e4bf06d3)
2024-05-28 16:32:11 +02:00
Shauren
0426f8df6f Removed unneccessary c_str() from previous commit
(cherry picked from commit 2af957c2ad)
2024-05-28 16:32:06 +02:00
Shauren
c1ed3a6ea8 Core/Entities: Make ObjectGuid formattable with fmt without using ToString()
(cherry picked from commit 4131022f6c)
2024-05-28 16:32:01 +02:00
Shauren
7c32484b79 Core/Pets: Removed overriding unit class for pets
(cherry picked from commit 2c702df4e3)
2024-05-28 16:31:56 +02:00
Meji
382eb5063f Core/Creatures: Changed the spawn health field in creature table to a percentage (#29801)
(cherry picked from commit def601b4ff)
2024-05-28 16:31:42 +02:00