3020 Commits

Author SHA1 Message Date
Shauren
1db1a0e57f Core/Movement: Enable MotionMaster::MovePath for players 2026-01-05 14:18:45 +01:00
Shauren
a80e33a674 Core/Spells: Move periodic tick count calculation from SpellInfo to SpellEffectInfo 2026-01-03 12:18:49 +01:00
Shauren
ed599208ea Core/Movement: Change MoveJump to use min/max height argument instead of vertical speed 2025-11-23 11:54:42 +01:00
Shauren
faab5afaf4 Scripts/Misc: Replace manual jumps with proper spells (or non-jump movement where there should be no jumps) 2025-11-23 00:19:43 +01:00
Shauren
71ebbc60cc Core/Movement: Remove MotionMaster::MoveJump(x, y, z) overload 2025-11-18 00:32:06 +01:00
Shauren
c24dcf62ac Core/Movement: Use std::span argument instead of std::vector in MoveSplineInit::MovebyPath to avoid having to construct temporary containers 2025-11-10 19:55:29 +01:00
Shauren
7c5edfcdda Core/Position: Change Position<->G3D::Vector3 conversion functions to be lambdas 2025-11-09 21:30:32 +01:00
Shauren
c6e6e17b9a Core/Misc: Remove large functions from headers 2025-10-29 19:40:58 +01:00
Shauren
0da653e9c1 Scripts/Spells: Fix all effect hooks attached to SPELL_EFFECT_SUMMON broken after moving handling of that effect to launch phase 2025-10-15 11:16:18 +02:00
Shauren
a8f01e07d1 Core/Entities: Merge duplicate functions calculating relative positions - remove CalculatePassengerPosition/CalculatePassengerOffset from TransportBase class 2025-10-14 13:11:41 +02:00
Shauren
3d8a75b0b5 Core/Misc: Reduce differences between branches 2025-10-04 15:05:17 +02:00
Shauren
ca70a5c1a0 Scripts/The Nexus: Updated dungeon encounter ids 2025-10-01 15:39:27 +02:00
Shauren
de80c713d0 Scripts/Spells: Refactor spell script internals to fix -Wcast-function-type-mismatch warning 2025-08-16 15:31:10 +02:00
Shauren
fbbcc31670 Core/Misc: Simplify LinkedListHead::isEmpty and rename to empty to fit standard container naming 2025-07-11 17:47:14 +02:00
Shauren
cbb532e4be Core/Groups: Use iterators instead of raw LinkedListElement to interact with group members 2025-07-11 17:40:34 +02:00
Shauren
36332d2463 Core/Misc: Remove a bunch of code from headers 2025-06-13 16:36:03 +02:00
Shauren
0f9a0accf1 Core/Misc: Kill AnyPlayerInObjectRangeCheck (duplicate of AnyUnitInObjectRangeCheck) 2025-06-08 01:07:44 +02:00
Shauren
a5ca817ff6 Core/Position: Remove Position implicit object slicing 2025-05-19 15:34:32 +02:00
Shauren
05eb63c8a2 Scripts/Misc: Update ScriptPCH content to include most commonly headers 2025-05-11 23:34:45 +02:00
Shauren
2e79d3524f Core/Spells: Rename confusing SpellState enum values
* SPELL_STATE_CASTING -> SPELL_STATE_CHANNELING (was used for "channel in progress")
* SPELL_STATE_DELAYED -> SPELL_STATE_LAUNCHED
2025-04-20 15:41:58 +02:00
Shauren
e57b0296d6 Core/Spells: Merge Spell::SetSpellValue overloads 2025-04-03 13:48:52 +02:00
Shauren
0f5d634e38 Scripts: Remove unneccessary DoublePosition from AreaBoundary 2025-02-07 12:47:39 +01:00
Shauren
dbd761d20a Core/Spells: Remove manual spell guid creation in scripts 2025-02-01 00:32:34 +01:00
Shauren
887fcbc02b Scripts/Spells: Removed unneccessary hacks - reagent consumption by triggered spells fixed in 54a83b4b68 2025-01-01 20:32:23 +01:00
Shauren
151a50d2aa Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags 2024-12-31 20:14:01 +01:00
Shauren
5e541de574 Scripts: Remove direct unit flag manipulations for UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IMMUNE_TO_NPC and UNIT_FLAG_UNINTERACTIBLE 2024-12-29 12:59:38 +01:00
ModoX
6b96facee3 Core/AI: Remove default arguments for inter-script communication 2024-12-29 00:17:07 +01:00
Shauren
884662a75a Core/Scripts: Added SpellEffectInfo argument to CalcDamage and CalcHealing spell script hooks 2024-12-21 00:40:08 +01:00
Jeremy
caccb06190 Core/Texts: Refactor Emote/Sound handling and add ConditionID for ChatTextBuilders (#30343) 2024-10-21 02:34:00 +02:00
Shauren
975e7cc072 Core/Spells: Refactor CastSpellExtraArgs
* Allow C++20 designated initializers
* Allow precise float values for SPELLVALUE_RADIUS_MOD, SPELLVALUE_CRIT_CHANCE and SPELLVALUE_DURATION_PCT
2024-09-12 21:57:16 +02:00
Shauren
ac73edc268 Core/Movement: Allow setting position or object facing targets for jump movement 2024-06-21 15:35:12 +02:00
Shauren
c968dedfee Core/Spells: Fixed implementation of SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS and removed banish special cases that were neccessary because that attribute wasn't correctly supported 2024-06-19 20:14:53 +02:00
Ovahlord
11f32a2427 Core/Creatures: moved combat pulse into heartbeat handling and implemented CREATURE_STATIC_FLAG_2_FORCE_PARTY_MEMBERS_INTO_COMBAT (#29946) 2024-04-28 16:09:43 +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
e1f43900d1 Core/Movement: Store delay in WaypointNode as Milliseconds instead of raw integer and revert c5097114d1 2024-04-19 15:16:17 +02:00
Meji
def601b4ff Core/Creatures: Changed the spawn health field in creature table to a percentage (#29801) 2024-03-30 20:21:28 +01:00
Jeremy
be11f42a16 Core/Battlegrounds: Move to scripts (#29799)
* Introduce new BattlegroundScript class for map/bg specific scripts
* Remove all sub, zone specific, battleground classes except Arena
* Move all bg zone scripts to new BattlegroundScripts class in script folder
* Remove ZoneScript from Battleground class
* Remove some unused hooks from Battleground
2024-03-28 19:29:22 +01:00
Shauren
94b78ebc8b Core/Players: Slightly improve neutral player faction support 2024-03-24 17:19:10 +01:00
Shauren
c2e36dea6c Core/Creatures: Implemented serverside checks for UNIT_FLAG2_INTERACT_WHILE_HOSTILE and UNIT_FLAG3_ALLOW_INTERACTION_WHILE_IN_COMBAT
* Also stop sending npc flags for hostile creatures
2024-03-03 00:51:51 +01:00
Shauren
c70bd6f5e4 Scripts/Forge of Souls: Fixed Devourer of Souls achievement worldstate expression requirement and rotate beam tick timing 2024-02-28 20:40:22 +01:00
Jeremy
409adfa7a5 Core/Battlegrounds: Isle of Conquest Rework (#29687) 2024-02-26 22:33:07 +01:00
Shauren
7751d278b1 Scripts: Removed unused global variables 2024-02-24 13:44:20 +01:00
Jeremy
9c5b8927f8 Core/Battlegrounds: Move some areatrigger handling to scripts (#29700) 2024-02-23 18:09:57 +01:00
Shauren
a748fddfa4 Core/Creatures: Implemented CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH and fixed CREATURE_STATIC_FLAG_NO_MELEE_FLEE implementation (should cause fleeing from melee range) 2024-02-22 15:47:11 +01:00
Shauren
cc7e1bdcae Core/Instances: Added back missing cases to InstanceScript::SendEncounterUnit that are supported in 3.3.5 branch 2024-02-14 15:33:59 +01:00
Jeremy
3d56cdc084 Core/Battlegrounds: Strand of the Ancients Rework (#29576) 2024-01-27 18:22:26 +01:00
Shauren
605e5f94c0 Core/Creatures: Moved autoattack handling from scripts to game 2024-01-08 22:23:12 +01:00
ModoX
12186ef857 Core/Waypoints: Refactor to split data into path and node related info in db (#29506) 2024-01-05 17:56:19 +01:00
Shauren
78bcc3f52a Core/Misc: Minor code modernization - kill std::bind 2023-12-08 20:27:41 +01:00
ModoX
3f6f683ce4 Core/Waypoints: Drop waypoint_scripts table (#29437) 2023-11-24 21:08:00 +01:00