218 Commits

Author SHA1 Message Date
Jeremy
16edee0b0e Scripts/Commands: Improve .debug arena (#31292) 2025-10-02 21:38:53 +02:00
Shauren
1e4232e7af Core/Scripts: Use std::string_view to find script id from script name 2025-09-14 14:13:16 +02:00
Jeremy
9ed3d12ec0 Core/Arenas: Allow queueing for rated arenas (#31148) 2025-08-10 11:25:32 +02:00
Shauren
c02e311eef Core/Gossip: Track started interaction types and reset only questgiver on quest accept
Closes #31120
2025-07-05 22:34:45 +02:00
Shauren
ceb8d561b4 Core: Updated to 11.1.7 2025-06-18 11:37:07 +02:00
Shauren
afbde8800a Core/Misc: Reduce code differences between branches 2025-02-09 22:35:20 +01:00
Shauren
9201c0f035 Core/Misc: Reduce code differences between branches 2025-02-05 20:20:17 +01:00
Shauren
d778d5ec7c Core/Misc: Include cleanup - remove MapUtils.h from Containers.h 2024-12-31 18:12:36 +01:00
Shauren
df51150381 Core/DataStores: Updated to 11.0.0 2024-08-02 14:40:12 +02:00
Golrag
27e23600bb Core/Players: Extended world_safe_locs with transport guid - this allows teleporting to a different map directly to a transport and having graveyards on transports 2024-05-25 22:05:53 +02: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
4779fa5048 Core/Misc: Use our new unique_trackable_ptr for various classes exposed to scripts (not actually used anywhere currently) 2024-03-13 18:51:29 +01:00
Jeremy
1ef0c04520 Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types (#29535)
* Fix criteria data type bg loss team score
2023-12-29 14:12:15 +01:00
Jeremy
72b9aace54 Core/Battlegrounds: Implemented BfA Warsong Gulch (#29247) 2023-08-29 08:38:10 +02:00
Jeremy
0ede6c1556 Core/Battlegrounds: Rework queues (#29200)
* No more copies of Battleground classes
* FreesSlotQueues now have as key the MapId instead of queue id
* Random queues can now popup already busy specific battelgrounds (queues are NOT merged)
* Removed Holiday handling, this should already be handled in BattlegroundMgr::IsBGWeekend
2023-08-26 14:03:42 +02:00
Jeremy
205aba1ff3 Core/Battlegrounds: Moved AreaSpiritHealer resurrection handling to respective npc flags (#28508)
* UNIT_NPC_FLAG_AREA_SPIRIT_HEALER
* UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL
2023-05-09 05:20:35 +02:00
Shauren
7b31080258 Core/Misc: Modernize code a bit by replacing std::tie with either structured bindings or operator<=> 2023-04-06 17:46:58 +02:00
Shauren
d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren
fbe0b8efeb Core/Maps: Removed MapInstanced - no longer neccessary for grid data reference counting (moved to TerrainInfo) 2022-07-24 18:56:40 +02:00
Jeremy
19f64e66e5 Core/GameObjects: Implemented GAMEOBJECT_TYPE_CAPTURE_POINT (#27034) 2022-02-26 19:01:00 +01:00
Shauren
ad4f4bfab7 Core/Misc: Minor game include cleanup 2022-02-13 00:49:10 +01:00
Ovahlord
7a5529eb58 Core/Events: refactored battleground holiday assignments.
Instead of going with shitty bitmasks we now accept plain battleground ids
 instead

(cherry picked from commit 8a82403400)
2022-01-21 22:09:06 +01:00
ccrs
df2f6ad219 Core/Shared: add BattlefieldBattleId definitions
Also rename BG_TEAMS_COUNT and BattlegroundTeamId

(cherry picked from commit 7417cbc655)
2021-11-15 18:52:02 +01:00
Jeremy
20d70abb2c Core/Battlegrounds: Change Battleground* argument to BattlegroundQueueTypeId (#26806) 2021-08-14 19:56:30 +02:00
ariel-
3bc3b3eeeb Core/Globals: revert back to unordered_map for templates
Partial revert of commit b64c504314
See discussion on b64c504314

(cherry picked from commit b75ff7d4bf)
2021-06-16 01:29:25 +02:00
ariel-
21556667c1 Core/Globals: throw some RAII into ObjectMgr, and load templates into vectors
Ref #14274

(cherry picked from commit b64c504314)
2021-06-16 01:00:11 +02:00
Osleyder Gonzalez Acosta
d4ad987010 Core/Misc: Update a few enums from db2 to 9.0.2 (#25956) 2021-01-28 22:02:03 +01:00
Aokromes
93552510ab Core/Logs: Fix more logs
the others have exit,so they continue to be error because they are critical

(cherry picked from commit b68484cfb0)
2021-01-21 22:30:40 +01:00
Shauren
1c52d5fff7 Core/Misc: Replace NULL with nullptr 2020-08-14 17:06:03 +02:00
Shauren
41c3675bb9 Fix warnings 2020-05-31 17:18:18 +02:00
Shauren
bf8714b870 Core/Battlegrounds: Queue updates
* Fixed battleground queues for battlegrounds with id higher than 255
* Fixed queue display ingame after entering bg
* Fixed ingame display after leaving bg queue
* Fixed bg scoreboard
2020-05-31 16:49:18 +02:00
Shauren
d435d5d5ba Core/PacketIO: Fixed BattlefieldStatusHeader structure and QueueID values for other battleground types 2020-05-27 00:29:13 +02:00
Golrag
d7623adf0e Core/Battlegrounds: Use the following fields from DB2/battleground_template data in the Battleground Class:
* isArena
* name
* queueId
* min & max players (per team)
* map id
* script id
* start max dist
* type id
* min & max level
* Save the WorldSafeLocsEntry* instead of the Position in the BattlegroundTemplate struct
2020-05-02 12:05:30 +02:00
Aokromes
b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
Shauren
3ac790287a Core/DataStores: Updated db2 structures to 8.2.5 2019-10-27 00:12:45 +02:00
vincent-michael
5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
joschiwald
ed318fdc46 Core/Battleground: Dropped battleground texts from trinity_string and replaced them with proper BroadcastText 2018-01-14 18:48:01 +01:00
vincent-michael
7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Shauren
7bb62cd23d Core/DataStores: Updated db2 structures to 7.3.2.25480 2017-12-30 00:26:37 +01:00
jackpoz
74e4f73fcb Core/Misc: Fix static analysis issues
(cherry picked from commit 7d3291e804)

# Conflicts:
#	src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
2017-07-16 20:50:43 +02:00
Shauren
0d06fcee17 Core/PacketIO: Updated and enabled LFG packets 2017-07-12 00:05:41 +02:00
Shauren
b453e12423 Core/Game: Include cleanup part 5
* ObjectMgr.h
* Player.h
* Unit.h
* G3D should no longer propagate everywhere from Spline/MotionMaster
2017-06-04 01:00:45 +02:00
Shauren
3d7c2ef88f Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr) 2017-05-21 23:18:43 +02:00
Shauren
c5d3dd90be Core/Game: Include cleanup
* Mostly aimed at removing Log/DatabaseEnv includes from other headers
* Fix most packet headers including other packet headers - moved common structures such as ItemInstance to their own files
* Moved SAI function definitions to source files (massive or requiring many different dependencies)
2017-05-18 23:53:25 +02:00
Shauren
3a418a0bbc Core/Common: Include cleanup 2017-05-11 22:29:51 +02:00
ariel-
5681dc3a64 Core/BattlegroundMgr: Update Battlegrounds each second instead of every tick (just like Battlefield).
There are some battleground scripts (like SOTA) performing object access every update, this should help throttle the cpu usage.

(cherry picked from commit 9cdbf903e2)

# Conflicts:
#	src/server/game/Battlegrounds/BattlegroundMgr.cpp
#	src/server/game/Battlegrounds/BattlegroundMgr.h
2017-02-12 15:34:34 +01:00
vincent-michael
86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
ariel-
f7d351fb70 Core/Battleground: Fix issue reported by static analysis
(cherry picked from commit 58c5011499)
2016-11-14 05:35:38 -03:00
Shauren
af25942aec Core/PacketIO: Updated packets to 7.1.0.22900 2016-10-25 19:29:27 +02:00
Shauren
d34020da7f Core/DataStores: Fixed loading signed db2 fields 2016-10-09 16:54:11 +02:00