Commit Graph

375 Commits

Author SHA1 Message Date
Ovahlord
753c87ce24 Core/Packets: updated packet structure of SMSG_BATTLEFIELD_LIST and updated BattlegroundTypeId enum 2024-08-27 04:48:44 +02:00
Shauren
a2b6af53ac Core/Groups: Make member field naming consistent and add missing consts
(cherry picked from commit 76ab45ee2d)
2024-07-25 23:28:09 +02:00
Ovahlord
524ab5da2f Core/Loot: updated default loot modes for Cataclysm 2024-04-01 23:06:02 +02:00
Shauren
6472446440 Core/Misc: Use our new unique_trackable_ptr for various classes exposed to scripts (not actually used anywhere currently)
(cherry picked from commit 4779fa5048)
2024-03-25 20:21:24 +01:00
Shauren
97d7ccd180 Core/Quests: Merged UpdateNearbyCreatureNpcFlags, UpdateVisibleGameobjectsOrSpellClicks and SendQuestGiverStatusMultiple on quest actions
* Fixes quest markers above NPC heads not disappearing when player stops seeing questgiver npc flag
2024-03-03 00:50:38 +01:00
Jeremy
6ed8b5c907 Core/PacketIO: Handle QueryCountdownTimer (#29539)
* Add it to battleground
* Base implementation countdowns in Group
* Fix timer sync between groups in battlegrounds
2024-01-25 14:15:58 +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
Shauren
41a20b1e40 Core/Achievements: Fixed achievement criteria StartEvent and FailEvent
* Criteria using StartEvent cannot be updated without that event triggering first (not only for timed achievements)
* Implemented most StartEvent and FailEvent types
* Fixed saving criteria removed by RemoveCriteriaProgress
2023-09-25 00:53:56 +02:00
Shauren
c2f5ce2b03 Core/Groups: Implemented 10.1.7 ping system 2023-09-14 00:11:06 +02:00
Shauren
8efeb202a5 Core: Update to 10.1.7 2023-09-07 01:10:07 +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
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
010e6f7f49 Core/Loot: Implemented dungeon encounter personal loot
Closes #20066
2022-10-25 00:30:52 +02:00
Shauren
ddd0c7b152 Core/Instances: Reimplement resetting instances from UI 2022-10-04 00:19:38 +02:00
Shauren
9b924522d0 Core/Instances: Delete InstanceSaveMgr and replace most of its uses with new InstanceLockMgr 2022-10-04 00:19:38 +02:00
Shauren
a131542855 Core/Maps: Check group that owns instance (first group to enter a given instance id owns it) 2022-10-04 00:19:38 +02:00
Shauren
3ef5079fee Core/Loot: Move loot rolls from Group to Loot
* Partial port of cmangos/mangos-wotlk@ffdf9a05d6
2022-09-16 16:58:03 +02:00
Shauren
9700b2a786 Core/Loot: Store method used at loot generation inside Loot object 2022-09-14 22:03:47 +02:00
Shauren
e9d083a2ee Core/Loot: Set loot guid and type in Loot constructor 2022-09-11 18:21:01 +02:00
Shauren
7957e2d380 Core/Loot: Allocate Loot separately from objects 2022-09-01 20:07:58 +02:00
ModoX
6d86c670dd Core/PacketIO: Drop correct field in SMSG_PARTY_UPDATE and utilize new bit properly
* 768811f782 followup
2022-08-19 16:28:53 +02:00
ModoX
768811f782 Core/PacketIO: Fixed structure of SMSG_PARTY_UPDATE 2022-08-19 13:43:23 +02:00
Shauren
20f38369f3 Core/PacketIO: Updated packet structures to 9.2.7 2022-07-31 21:39:48 +02:00
Shauren
16a06346ae Core/Maps: Move terrain data handling out of Map class
Partial port of cmangos/mangos-wotlk@ff5232c648
2022-07-23 19:13:33 +02:00
Shauren
36d62244ad Core/Groups: Fixed loading character race info for offline group members 2022-07-22 19:37:25 +02:00
Shauren
d3c4216de8 Core/PacketIO: Updated packet structures to 9.2.5 2022-06-01 23:13:29 +02:00
Shauren
a12f939070 Core/PacketIO: Implemented SMSG_BROADCAST_SUMMON_CAST and SMSG_BROADCAST_SUMMON_RESPONSE 2022-05-14 20:40:55 +02:00
Shauren
84486ded67 Core/Battlegrounds: Store mercenary status separately from the aura obtained from gossip as it can be removed at any time 2022-04-16 12:15:37 +02:00
Shauren
b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00
jackpoz
d0fe16b787 Core/Misc: Fix issues reported by static analysis
(cherry picked from commit 33dace231c)
2022-03-11 11:48:18 +01:00
Mikhail Redko
9e6def8ae2 Core/Console: Improve ReadWinConsole logic and cosmetic changes (#26402)
* Core/Console: Improve ReadWinConsole logic and cosmetic changes

* Core/Console: Fixed possible appearance of weird characters in the console when printing the output of child processes

* Fix codestyle

* Removed auto

* Core/Misc: Explicit casting Difficulty values to uint8 before outputting to console

* Core/Misc: Cast Difficulty to uint32 for output to console

Co-authored-by: jackpoz <giacomopoz@gmail.com>
(cherry picked from commit 6c12f45f3b)
2022-03-09 14:55:18 +01:00
Giacomo Pozzoni
a66b968f91 Core/Misc: Fix static analysis issues (#25924)
* Core/Misc: Fix static analysis issues

* Fix infinite loop in ".debug send opcode"
Fix using uninitialized memory in ".debug send opcode"

(cherry picked from commit 661f554b9e)
2022-03-06 01:35:01 +01:00
Kargatum
373ed8f46b Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf

(cherry picked from commit a32b6b8ac4)
2022-03-05 20:07:57 +01:00
Shauren
596bf2b772 Core/Misc: Replace boost::optional with std::optional part 2 2022-01-23 20:31:52 +01:00
Peter Keresztes Schmidt
1e1679a1f7 Core/DataStores: Port refactors from Update DBC field names to generated ones (#24999)
(cherry picked from commit c92950b3e1)
2022-01-23 00:06:16 +01:00
Shauren
6f8d6f5c9b Core/Groups: Fixed crash in loot rolls happening when looted object despawns before roll expires
Closes #27600
2022-01-12 12:55:50 +01:00
ForesterDev
9124fd1f1f Core/Items: implement some helper methods for easier readability (#24113)
(cherry picked from commit 573ddf4d22)
2021-12-21 00:46:13 +01:00
Wyrserth
a2b1b3e2aa Core/Instance: remove wrong raid-only restriction in the logic that kicks offline players out of instances when the instance is reset.
(cherry picked from commit e5615402cc)
2021-12-17 00:24:22 +01:00
Treeston
a69a061d76 Battleground/Arena: Properly check RBAC arena join permission before allowing queue. Closes #23000.
(cherry picked from commit af082664ca)
2021-12-15 23:31:31 +01:00
Wyrserth
edf12fd6a1 Core/Conditions: allow spellclick conditions to properly work for aura apply/remove (#23527)
(cherry picked from commit 12e545f7e2)
2021-12-14 20:52:13 +01:00
ccrs
4e6c59dca7 Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
        uint8 GetLevelForTarget(WorldObject const* /*target*/)
        void SetLevel(uint8 lvl)
        uint8 GetRace()
        uint32 GetRaceMask()
        uint8 GetClass()
        uint32 GetClassMask()
        uint8 GetGender()

(cherry picked from commit 5c09ff51f7)
2021-12-13 00:42:20 +01:00
Wyrserth
5ca9f51033 Core/Loot: fix issue that prevented players from rolling for an unique-category item while an equipped item shares the same unique-category.
(cherry picked from commit eb7a6391aa)
2021-12-13 00:42:18 +01:00
jackpoz
dd22c6fe67 Core/Misc: Code cleanup
(cherry picked from commit eeced9ae15)
2021-12-11 23:20:05 +01:00
zartech22
1c3c59d7fa Core/Instance : Fix instance resetting exploit (#23263)
* Push offline players out of instance

Push offline players out of instance when reseting dungeon with a raid mode group

* Add SQL request to character

Add a SQL request to update the position of a player in a specified map

* Teleport to graveyard instead

(cherry picked from commit 678e0e606a)
2021-12-11 23:12:27 +01:00
Wyrserth
1c8f94a14f Core/Loot: implement automatic pass in group loot for items that cannot be looted. (#23413)
(cherry picked from commit 00fdf6e99a)
2021-12-11 14:12:52 +01:00
Wyrserth
cc141e9bad Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes (#23398)
* Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes.

* Add #23396 to make testing easier.

* Prioritize assistants in raids.

* Fix dumb mistake and apply suggested change, thanks VincentVanclef and jackpoz!

(cherry picked from commit e906a2fe7d)
2021-12-11 13:06:25 +01:00
jackpoz
927e62e88e Core/Group: Fix memory leak
Fix memory leak happening when disbanding a group with an ongoing roll.
Please note this is not blizz-like but at least we don't leak memory anymore.

(cherry picked from commit f04e90f638)
2021-11-23 21:28:23 +01:00
Gooyeth
2757235956 Core/Battleground: Fixed a problem that did not let Arenas queue if it was in queue of Random Battleground (#21963)
(cherry picked from commit 5871c36750)
2021-09-26 21:36:48 +02:00
Gooyeth
a9e7464e0d Core/Battleground: allow Random battleground and arena queues same time. (#21730)
- It also restricts queuing to arenas if it is in queue of dungeon finder

(cherry picked from commit 8aad6f828e)
2021-09-25 21:36:11 +02:00
Meji
0a83f74876 Core/Achievements: Update CriteriaType enum (#26856) 2021-09-08 22:07:01 +02:00