Commit Graph

21600 Commits

Author SHA1 Message Date
Ovahlord
c2fedbb6cc Core/Units: moved cyclic spline synchronization mechanic heartbeat handling 2024-04-26 14:21:09 +02:00
Ovahlord
80d72a2c91 Core/Player: moved the periodic group update mechanic into heartbeat handling 2024-04-26 14:21:09 +02:00
Ovahlord
bf9cd88ceb Core/Objects: implement internal heartbeat timer for WorldObjects (#29941)
This is the first step of porting the functionality of #25822 by cutting each change into a nicely self-contained commit

---------

Co-authored-by: Mykhailo Redko <ovitnez@gmail.com>
2024-04-26 01:14:48 +02:00
Shauren
dad976beb4 Core/Movement: Migrate scripts using GetMotionMaster()->MoveSmoothPath to GetMotionMaster()->MovePath and kill it (they now have the same capabilities) 2024-04-25 00:42:16 +02:00
Shauren
e0e1b6a409 Core/Movement: Enable Catmullrom spline flag by default for flying waypoint paths 2024-04-24 09:46:57 +02:00
Shauren
ad6ef5237d Core/Movement: Fixed spline packed deltas validation check 2024-04-24 00:12:56 +02:00
Shauren
5f31d7cb88 Build fix for clang <= 14 2024-04-23 11:59:45 +02:00
Shauren
3af5cafec7 Core/Movement: Change default spline flags - Steering replaces SmoothGroundPath 2024-04-23 11:11:32 +02:00
Shauren
a02804fa02 Core/Movement: Refactor MoveSplineFlag to get rid of undefined behavior (cast in raw()) and unify enum to string formatting for it 2024-04-23 11:09:59 +02:00
Shauren
8c0b031c07 Core/Units: Name new spline flag and linked npc flag 2024-04-22 13:19:08 +02:00
Shauren
cfa838df5d Core/Misc: Support boost 1.85 2024-04-22 11:52:58 +02:00
Aqua Deus
f4ef6f769b Scripts/Spells: Add new script for spells with feign death with all flags except uninteractible (#29922) 2024-04-21 14:51:07 +02:00
ModoX
a28facb956 Core/Movement: Fixed data sent in cyclic spline related packets 2024-04-21 12:59:12 +02:00
Shauren
377b51f768 Core/Movement: Switch to uncompressed paths in spline packets automatically when too large or too small delta between points is detected 2024-04-21 00:18:02 +02:00
Shauren
cf1ab7b414 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
2024-04-21 00:16:57 +02:00
ModoX
8d8a54db25 Core/Spells: Fixed SpellInfo::GetSpellXSpellVisualId for nonplayer casters (#29927) 2024-04-20 19:59:35 +02:00
Shauren
204f65684c Core/Movement: Merge waypoints without delay into a single movement packet 2024-04-20 00:22:34 +02:00
Shauren
cf4c3b5467 Core/Movement: Added functions to MoveSplineInit to enable steering flag 2024-04-20 00:05:24 +02:00
Shauren
e1f43900d1 Core/Movement: Store delay in WaypointNode as Milliseconds instead of raw integer and revert c5097114d1 2024-04-19 15:16:17 +02:00
Shauren
ff9db332f5 Core/Movement: Minor cleanup in WaypointMovementGenerator - local variable for GetPath() (not a true trivial accessor) 2024-04-19 00:27:18 +02:00
Shauren
c5097114d1 Core/Movement: Fixed pauses on waypoint movement happening at wrong times when FollowPathBackwardsFromEndToStart is set and creature is going from end to start 2024-04-18 00:19:33 +02:00
Shauren
b5dceafad7 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
2024-04-17 15:58:47 +02:00
Shauren
e5beb25d25 Core/Pathfinding: Allow using PathGenerator with any source location, not only objects current position 2024-04-17 00:06:56 +02:00
Jeremy
091094aa13 Scripts/Battlegrounds: Implement Twin Peaks (#29924)
Closes #8894
2024-04-16 19:14:11 +02:00
Shauren
0384d90663 Core/Achievements: Fixed achievement SMSG_ACHIEVEMENT_EARNED not being sent to self 2024-04-15 20:09:34 +02:00
Shauren
5dfac0ef14 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
2024-04-14 14:28:40 +02:00
Shauren
325cfd047d Core/Conditions: Added startup error log for conditions using invalid effect index on CONDITION_AURA 2024-04-13 16:16:22 +02:00
Aqua Deus
a3f760e383 Scripts/Wandering Isle: Script quest 29419 The Missing Driver (#29821) 2024-04-12 22:30:45 +02:00
Aqua Deus
59333a4d60 Scripts/Quests: Improve quest 29408 (The Lesson of the Burning Scroll) (#29775) 2024-04-12 20:37:22 +02:00
Naddley
611110be3b Scripts/Mardum: Implement "Hidden No More" quest accept event (#29899)
Co-Authored-By: ModoX <moardox@gmail.com>
2024-04-12 17:30:04 +02:00
Shauren
69da702b93 Core/Items: Implemented CreateTime item field and changed refund/soulbound trade timers to also count time offline 2024-04-12 00:18:20 +02:00
Gosha
8c274a8e8d Core/Items: Fix loading secondaryItemModifiedAppearanceSpec5 (#29917) 2024-04-11 22:45:02 +02:00
Shauren
66abcaff14 Core/Spells: Fixed TARGET_UNIT_AREA_THREAT_LIST and TARGET_UNIT_AREA_TAP_LIST 2024-04-11 19:59:43 +02:00
Aqua Deus
796b37102a Scripts/Quests: Handle quest 29409 (wandering isle) (#29784) 2024-04-11 19:58:06 +02:00
Meji
2ce4068459 Core/SAI: Added support for StringIds to creature and gameobject targets (#29910)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2024-04-11 10:15:46 +02:00
Shauren
bec5bdb61b Core/Entities: Fixed m_stringIds[0] invalidation when reloading creature_template with a gm command 2024-04-10 20:27:57 +02:00
ModoX
88bbd27f8d Core/Entities: Added possibility to inherit StringIds from other entities (#29908)
* also implicitly do so for personal summons
2024-04-10 20:03:14 +02:00
Shauren
404bb5b3c2 Core/DBLayer: Support retrieving DATE/DATETIME/TIMESTAMP column values directly without casting in sql 2024-04-10 13:59:19 +02:00
ModoX
58839b7c18 Core/Entities: nopch build fix 2024-04-09 17:00:43 +02:00
ModoX
9959a1373a Core/Entities: Update StringId assignment to use StringIdType 2024-04-09 16:39:15 +02:00
ModoX
5cea37153e Core/Entities: Added GetStringId helper methods 2024-04-09 16:34:24 +02:00
Shauren
b1b16cc139 build fix 2024-04-09 12:55:06 +02:00
Shauren
3545285ad7 Core/Auras: Fixed SPELL_ATTR10_ROLLING_PERIODIC for auras that have 0 base amount and only scale from spell/attack power 2024-04-09 12:23:07 +02:00
Shauren
abab484156 Scripts/Forbidden Reach: Fix questgiver for initial quest not being there if you decline first quest popup
Closes #29793
2024-04-08 21:03:27 +02:00
Meji
4f5d1737a3 Core/Gameobjects: Changed the highlight logic for GAMEOBJECT_TYPE_GATHERING_NODE (#29896) 2024-04-08 19:11:32 +02:00
RioMcBoo
958b4726b6 Core/Misc: Fixed forced declined names initialization (#29898)
(cherry picked from commit 4dd200b9e5)
2024-04-08 19:03:21 +02:00
Meji
c90dbeb648 Core/Quests: Update phaseshift when taking or abandoning quests (#29901) 2024-04-08 13:26:04 +02:00
Shauren
f331bd1a28 Core/Spells: "Fixed" Inescapable Torment talent dealing damage to priest when learning (and somtimes killing on login) 2024-04-08 10:58:19 +02:00
Mematoru
8daa3f735d Scripts/Spells: Implemented Priest talent Unfurling Darkness (#29885)
Co-authored-by: Cristian Vintila <127750549+cristiv23@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2024-04-08 00:41:03 +02:00
Mematoru
79928707f8 Scripts/Spells: Implemented Shadow Priest talent Mind Devourer (#29895) 2024-04-07 19:57:11 +02:00