Commit Graph

1368 Commits

Author SHA1 Message Date
Shauren
eaf412c1bb Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags
(cherry picked from commit 151a50d2aa)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
#	src/server/scripts/Spells/spell_druid.cpp
#	src/server/scripts/Spells/spell_priest.cpp
#	src/server/scripts/Spells/spell_warlock.cpp
2025-01-01 21:00:25 +01:00
Shauren
03c575b614 Scripts: Remove direct unit flag manipulations for UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IMMUNE_TO_NPC and UNIT_FLAG_UNINTERACTIBLE
(cherry picked from commit 5e541de574)

# Conflicts:
#	src/server/scripts/DragonIsles/AzureVault/boss_leymor.cpp
#	src/server/scripts/ExilesReach/zone_exiles_reach.cpp
#	src/server/scripts/KhazAlgar/IsleOfDorn/zone_isle_of_dorn.cpp
#	src/server/scripts/Pandaria/zone_the_wandering_isle.cpp
#	src/server/scripts/Zandalar/KingsRest/boss_golden_serpent.cpp
2024-12-29 22:35:56 +01:00
ModoX
74f9ad8c2e Core/AI: Remove default arguments for inter-script communication
(cherry picked from commit 6b96facee3)
2024-12-29 12:17:25 +01:00
ModoX
1f81c961f2 Core/AI: Implemented conversation ai (#30538)
(cherry picked from commit 309ba22a15)

# Conflicts:
#	src/server/scripts/BrokenIsles/zone_mardum.cpp
#	src/server/scripts/DragonIsles/AberrusTheShadowedCrucible/aberrus_the_shadowed_crucible.cpp
#	src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp
#	src/server/scripts/KulTiras/WaycrestManor/waycrest_manor.cpp
#	src/server/scripts/KulTiras/zone_boralus.cpp
#	src/server/scripts/Shadowlands/SanctumOfDomination/boss_sylvanas_windrunner.cpp
#	src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp
#	src/server/scripts/Zandalar/KingsRest/kings_rest.cpp
2024-12-29 12:16:46 +01:00
Shauren
4988e328d4 Core/Creatures: Allow adding summons to CreatureGroup (only adding, no formation movement of linked aggro yet)
(cherry picked from commit 16bfbe1a3a)
2024-07-11 19:06:57 +02:00
Shauren
7198c5223e Core/Creatures: Fixed memory leaks in creature formations
(cherry picked from commit 2e3920081f)
2024-07-08 13:13:06 +02:00
Ovahlord
ffac60879b Core/Creatures: moved combat pulse into heartbeat handling and implemented CREATURE_STATIC_FLAG_2_FORCE_PARTY_MEMBERS_INTO_COMBAT (#29946)
(cherry picked from commit 11f32a2427)
2024-05-28 16:45:41 +02:00
Shauren
0d65725551 Core/Movement: Migrate scripts using GetMotionMaster()->MoveSmoothPath to GetMotionMaster()->MovePath and kill it (they now have the same capabilities)
(cherry picked from commit dad976beb4)

# Conflicts:
#	src/server/scripts/BrokenIsles/zone_orderhall_warrior.cpp
2024-05-28 16:44:37 +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
Jeremy
d0d5d309bb 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

(cherry picked from commit be11f42a16)
2024-03-28 20:38:55 +01:00
Ovahlord
c541eda54d Core/Creatures: implemented most movement related static flags and migrated existing movement data into static flags (#29541)
* implemented CREATURE_STATIC_FLAG_AQUATIC - creatures cannot leave liquids
* implemented CREATURE_STATIC_FLAG_AMPHIBIOUS - creatures can enter and leave liquids but remain on the ocean floor when swimming is not enabled until engaged
* implemented CREATURE_STATIC_FLAG_FLOATING - creatures have their gravity on spawn / reset disabled
* implemented CREATURE_STATIC_FLAG_SESSILE - creatures are rooted in place
* implemented CREATURE_STATIC_FLAG_CAN_SWIM - creature can swim in liquids
* implemented CREATURE_STATIC_FLAG_3_CANNOT_SWIM - Amphibious creatures cannot toggle on swimming
* implemented CREATURE_STATIC_FLAG_3_CANNOT_TURN - Creatures cannot turn at all
* implemented CREATURE_STATIC_FLAG_4_PREVENT_SWIM - Amphibious creatures won't toggle on swimming until their victim starts leaving the ocean floor
* partially implemented CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER
* deprecated CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE as this flag was a hackfix to a wrong implementation that is now gone
2024-02-29 14:43:37 +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
Ovahlord
c4a03b9931 Scripts/Baradin Hold: cleaned up some leftovers from Argaloth's rework and applied some missing coding standards 2024-01-23 10:33:00 +01:00
Ovahlord
b3ccf7b710 Scripts/Baradin Hold: rewrite Argaloth encounter (#29604)
* handle all missing mechanics and visuals
* modernized instance script
2024-01-22 12:33:11 +01:00
Ovahlord
ea093fef27 Core/Units: moved CharmInfo class and its definitions into a own file (#29583) 2024-01-16 18:43:32 +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
ModoX
f7a75a58f5 Scripts/DunMorogh: Removed some experimental leftovers from Joren Ironstock script 2024-01-03 01:52:05 +01:00
Naddley
47813ad734 Scripts/Stormwind: Implement Quest "Nation Of KulTiras" (#29547) 2024-01-02 14:55:57 +01:00
Shauren
29d9790402 Scripts/Karazhan: Removed a custom reimplementation of DoMeleeAttackIfReady (written before dual wield was supported by it) 2024-01-01 23:49:11 +01:00
Jeremy
6db980b69e Core/Battlegrounds: Rework Alterac Valley (#29530) 2024-01-01 23:33:25 +01:00
Naddley
0284d9bfb1 Scripts/DunMorogh: Implement Quest "Decontamination" (#29542) 2024-01-01 03:38:59 +01:00
Malcrom
42c5338a63 Scripts/DunMorogh: Implemented Rockjaw Invader spawning for Joren Ironstock (#29519)
Co-authored-by: ModoX <moardox@gmail.com>
2024-01-01 03:38:43 +01:00
Naddley
3dbd171399 Scripts/Stormwind: Implement Quest "Battle for Azeroth: Tides of War" (#29493) 2023-12-31 00:12:41 +01:00
Ovahlord
6e7a4e733a Scripts/Shadowfang Keep: added definitions for the doors and added a comment regarding their usage 2023-12-22 14:36:55 +01:00
Ovahlord
06917b6c43 Scripts/Shadowfang Keep: dropped deprecated scripts and updated instance script and definitions to Cataclysm 2023-12-22 14:29:48 +01:00
Ovahlord
50a2166fb1 Scripts/Deadmines: dropped deprecated scripts and updated instance script and definitions to Cataclysm 2023-12-22 12:51:05 +01:00
Ovahlord
cb5eb983b0 Scripts/Grim Batol: added base instance script and definitions 2023-12-22 12:22:19 +01:00
Ovahlord
e8a9223566 Scripts/Throne of the Tides: added base instance script and definitions 2023-12-22 12:08:25 +01:00
Ovahlord
ddcaaa61a5 Scripts/Bastion of Twilight: corrected dungeon encounter data for Sinestra 2023-12-22 11:42:55 +01:00
Ovahlord
16b7c3cca9 Scripts/Misc: added instance scripts and base definitions for all Cataclysm 4.0 raids 2023-12-22 08:40:11 +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
ModoX
0e2f041728 Core/InstanceScript: Refactored door types to reflect its behavior (#29406) 2023-11-06 00:11:42 +01:00
ModoX
caa4cfb569 Core/AI: Move ArcherAI to individual creature script (#29383) 2023-11-05 21:14:24 +01:00
Shauren
9894f6b802 Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 20:20:00 +01:00
Shauren
47fc3cb852 Core/Instances: Kill instance_encounters table, it is no longer neccessary 2023-09-19 10:59:04 +02:00
Shauren
4370f2fe29 Scripts/Stratholme: Added missing dungeon encounter ids 2023-09-18 19:14:50 +02:00
Shauren
39b06b2e46 Scripts/Scholomance: Added missing dungeon encounter ids 2023-09-18 00:09:04 +02:00
Shauren
7a9fba436c Scripts/Lower Blackrock Spire: Added dungeon encounter ids 2023-09-17 23:53:30 +02:00
Shauren
2b6f0c902f Scripts/Scarlet Monastery: Added dungeon encounter ids 2023-09-17 23:36:47 +02:00
Shauren
7d32674af6 Scripts/Sunken Temple: Added dungeon encounter ids 2023-09-17 23:04:02 +02:00
Shauren
ae26431a81 Scripts/Gnomeregan: Added dungeon encounter ids 2023-09-17 22:06:02 +02:00
Shauren
03d6dd8539 Scripts/Uldaman: Added dungeon encounter ids 2023-09-17 22:01:07 +02:00
Shauren
8de5808fd4 Scripts/Blackrock Depths: Added dungeon encounter ids 2023-09-17 15:06:03 +02:00
Aqua Deus
fa836ee433 Scripts/BlastedLands: Implement intro quest for Assault on the Dark Portal (#29242) 2023-08-24 11:00:06 +02:00
Shauren
1acaed2af4 Core/Objects: Switch to using designated initializers instead of chaining functions for FindCreatureOptions 2023-07-29 23:46:31 +02:00
Shauren
2e7e49b749 Scripts/Spells: Removed unneccessary PrepareSpellScript and PrepareAuraScript uses 2023-07-24 10:48:50 +02:00
Naddley
ac48da6275 Scripts/ElwynnForest: Implement conversation for "The New Clessington Estate" (#29135)
* human heritage questline
2023-07-21 17:51:56 +02:00