Commit Graph

899 Commits

Author SHA1 Message Date
Shauren
f4c0ede726 Core/Misc: Rename LinkedListHead::getSize to size to fit standard container naming 2025-07-11 17:51:49 +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
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
0f5d634e38 Scripts: Remove unneccessary DoublePosition from AreaBoundary 2025-02-07 12:47:39 +01:00
Aqua Deus
6a1a19d938 Scripts/Anniversary: Implement Doomwalker encounter (#30591)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2025-01-18 23:18:42 +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
b2a9a59364 Scripts/Spells: Add missed change for 975e7cc072 2024-09-13 13:06:48 +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
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
94b78ebc8b Core/Players: Slightly improve neutral player faction support 2024-03-24 17:19:10 +01:00
Shauren
6f6af6a1a1 Core/Objects: Added ToWorldObject and ToItem 2024-03-14 11:37:32 +01:00
Shauren
792a4d6c8b Scripts/Serpentshrine Cavern: Removed Spout hack and use correct spell ids 2024-02-28 21:10:51 +01:00
Shauren
59f92412d0 Core/Movement: MoveRotate improvements
* Allow overriding rotation speed
* Allow limiting rotation using total rotation angle instead of duration
2024-02-28 21:10:05 +01:00
Shauren
7751d278b1 Scripts: Removed unused global variables 2024-02-24 13:44:20 +01:00
Shauren
605e5f94c0 Core/Creatures: Moved autoattack handling from scripts to game 2024-01-08 22:23:12 +01:00
ModoX
3f6f683ce4 Core/Waypoints: Drop waypoint_scripts table (#29437) 2023-11-24 21:08:00 +01:00
ModoX
0e2f041728 Core/InstanceScript: Refactored door types to reflect its behavior (#29406) 2023-11-06 00:11:42 +01:00
Shauren
2e7e49b749 Scripts/Spells: Removed unneccessary PrepareSpellScript and PrepareAuraScript uses 2023-07-24 10:48:50 +02:00
Teleqraph
88ff97c1f9 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-07-20 19:09:27 +02:00
Meji
889e88ab80 Core/Spells: Fixed target radius logic in spell effects for TargetB (#29158) 2023-07-20 10:10:18 +02:00
Shauren
c484530b0c Core/Spells: Added enum flag operators to TriggerCastFlags to prevent accidentally using CastSpellExtraArgs(bool) constructor when CastSpellExtraArgs(TriggerCastFlags) was intended 2023-06-09 00:33:35 +02:00
Shauren
622eed752b Scripts/Spells: Converted remaining spell scripts to use ValidateSpellEffect 2023-06-03 23:17:28 +02:00
Shauren
f8a6a9b017 Scripts/Spells: Added spell effect validation helper 2023-05-30 19:34:19 +02:00
Meji
06d0b16f15 Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931) 2023-05-29 00:01:23 +02:00
ModoX
89e09dc44e Core/AI: Drop script_waypoints and move data to waypoint_data (#28879) 2023-04-10 04:04:33 +02:00
Shauren
3df16c12b7 Core/Scripts: Move EvadeReason outside of CreatureAI class 2023-01-19 21:23:06 +01:00
Shauren
d8a4668c77 Core/Misc: Add missing Containers.h include where neccessary 2023-01-06 16:44:11 +01:00
Shauren
2c79ce6791 Core/Conditions: Add const to condition checking functions 2022-10-24 00:15:43 +02:00
Shauren
46e0056196 Scripts/Instances: Add dungeon encounter data 2022-10-04 00:19:38 +02:00
Shauren
76be303351 Core/Scripts: Save instance data in JSON format 2022-10-04 00:19:38 +02:00
Shauren
e7411a8457 Nopch build fix
(cherry picked from commit 7eb482ed84)
2022-09-30 20:42:34 +02:00
Shauren
cfdc0a75f9 Scripts/The Underbog: Added spawn groups for bosses and implemented boss state tracking
(cherry picked from commit e3ac84b929)
2022-09-30 20:42:15 +02:00
Shauren
8cadc10dd5 Scripts: Fixed missing boss count initialization in The Slave Pens and The Botanica as well as incorrect map id assignment to Auchenai Crypts spawn groups
Closes #28278

(cherry picked from commit 01f0f83139)
2022-09-30 20:17:18 +02:00
Shauren
a953fb9a34 Nopch build fix
(cherry picked from commit 9fcc820016)
2022-09-30 20:11:10 +02:00
Shauren
7e6c133a57 DB/Mana-Tombs: Migrate linked_respawn to spawn groups
(cherry picked from commit 4af8548206)
2022-09-30 18:04:23 +02:00
Shauren
b308a295e3 Scripts/Serpentshrine Cavern: Move to BossAI
(cherry picked from commit 400d7e20d0)
2022-09-30 16:22:38 +02:00
Shauren
16c83d7737 DB/The Slave Pens: Migrate linked_respawn to spawn groups
(cherry picked from commit c0c8c3bf5d)
2022-09-30 16:16:32 +02:00
Shauren
b596cf2452 DB/Shattered Halls: Migrate linked_respawn to spawn groups
(cherry picked from commit f982e566a7)
2022-09-30 16:13:35 +02:00
offl
c746d9a59c Scripts/Quest: Rework 'Fel Spirits' (10909) (#28134)
(cherry picked from commit aef55d5dfa)
2022-09-05 21:18:23 +02:00
offl
496eba4e8d Scripts/Spells: Correctly implement Murmur's Touch & Dire Brew (#28058)
(cherry picked from commit f0d2418e5f)
2022-09-05 19:37:13 +02:00
offl
6fb332d935 Scripts/Spells: Get rid of several DB spell scripts (#28048)
(cherry picked from commit 3808e614d9)
2022-09-05 19:26:59 +02:00
offl
c8d56b8c67 Scripts/Quest: Update 'Dissension Amongst the Ranks...' (10769, 10776) (#28044)
(cherry picked from commit ffcc976524)
2022-09-05 19:01:28 +02:00
offl
6f3406a825 Scripts/UB: Rework The Black Stalker (#28040)
(cherry picked from commit c025fcef74)
2022-09-05 18:58:32 +02:00
offl
ab7010dae1 Scripts/Spells: Rework Fire Bomb (Halaa) (#28025)
(cherry picked from commit b5194a1527)
2022-09-05 18:34:31 +02:00
Shauren
7957e2d380 Core/Loot: Allocate Loot separately from objects 2022-09-01 20:07:58 +02:00
Shauren
b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00