Commit Graph

38312 Commits

Author SHA1 Message Date
Treeston
be9dadc189 Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR #25335)
(cherry picked from commit cd30e0b86c)
2022-02-04 00:27:13 +01:00
Treeston
7b88fd607e Core/Warden: Ensure Warden packets do not exceed 512 bytes. This should rectify random Warden timeouts.
(cherry picked from commit 7cc027401e)
2022-02-04 00:27:13 +01:00
offl
e419d7536a DB/SAI: Add SMART_TARGET_ACTION_INVOKER to SMART_EVENT_FRIENDLY_HEALTH_PCT
Ref cbed1039c4

(cherry picked from commit f59d6c1306)
2022-02-04 00:27:13 +01:00
Cerveciento
80cf999f84 DB/Locale/esES+esMX Texts missing in quests (Part 25)
Closes #25333

(cherry picked from commit 9c6cd777b9)
2022-02-04 00:27:13 +01:00
Cerveciento
bcc539421a DB/Locale/esES+esMX Texts missing in quests (Part 24)
Closes #25330

(cherry picked from commit f3f68be662)
2022-02-04 00:27:13 +01:00
Giacomo Pozzoni
902ed74c2a Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT (#25318)
* Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT

* Require radius (5th parameter) to be set

(cherry picked from commit cbed1039c4)
2022-02-04 00:27:13 +01:00
offl
71cbe9f318 DB/Quest: Update outro event of quest 'Plagued Lands'
Updates #25313

(cherry picked from commit 3f4bcfbbe1)
2022-02-04 00:27:13 +01:00
Cerveciento
ecb5cd5dae DB/Locale/esES+esMX Texts missing in quests (Part 23)
Closes #25319

(cherry picked from commit 1bf8b9452a)
2022-02-04 00:27:13 +01:00
Cerveciento
1cc161ec8e DB/Locale/esES+esMX Texts missing in quests (Part 22)
Closes #25306

(cherry picked from commit 8325dfa7d4)
2022-02-04 00:27:13 +01:00
offl
392f0e9f73 DB/Quest: Fix typo in RewardText of quest 'The Remains of Trey Lightforge'
Closes #25322

(cherry picked from commit 64c1e956a4)
2022-02-04 00:27:13 +01:00
Treeston
cfcfe71097 Build: Add Clang version guard to CMake (PR #25324)
(cherry picked from commit 27b1930d97)
2022-02-04 00:27:13 +01:00
Shauren
f7ed56f232 Core/Warden: Fix warden timeout ticking twice as fast as it should
(cherry picked from commit ec783fcbb5)
2022-02-04 00:27:12 +01:00
Peter Keresztes Schmidt
0257cdc8ca Core/ChatCommands: Do not try to consume integral types if the token is empty (PR #25320)
(cherry picked from commit 6079bc7f34)
2022-02-04 00:27:12 +01:00
jackpoz
1f34964df4 Core/Movement: Fix RandomMovementGenerator for swimming creatures
Fix RandomMovementGenerator for swimming creatures not moving at all due to PATHFIND_FARFROMPOLY being handled as wrong path.
Fixes #25236

(cherry picked from commit 1aceb41349)
2022-02-04 00:27:12 +01:00
jackpoz
0150828841 DB/Misc: Add new view vw_conditions_with_labels that shows labels instead of numbers from conditions table
(cherry picked from commit 7cdc4b46bb)
2022-02-04 00:27:12 +01:00
Treeston
03b5c17863 Common/Utilities: Move EnumUtils' implementation struct from Trinity::Impl to Trinity::Impl::EnumUtilsImpl. This avoids confusing name clashes for other implementations in sub-namespaces of Trinity::Impl.
(cherry picked from commit 91744de316)
2022-02-04 00:27:12 +01:00
jackpoz
27405870e0 DB/Misc: Add new view vw_disables_with_labels that shows labels instead of numbers from disables table
(cherry picked from commit 6d295629cf)
2022-02-04 00:27:12 +01:00
Treeston
0473beff2b Core/Misc: std::string -> std::string_view in a bunch of places, notably chat commands and Util.h
(cherry picked from commit a41bbd9ad9)
2022-02-04 00:27:12 +01:00
robinsch
5ba95cb42f Core/Unit: Fixed race condition when loot recipient is in different map (#25312)
(cherry picked from commit aaa089ab7f)
2022-02-04 00:27:12 +01:00
jackpoz
1f2c48f8bb Core/SAI: Remove completed timed action lists even while evading
Fixes #25294

(cherry picked from commit 03eb0886a8)
2022-02-04 00:27:12 +01:00
Peter Keresztes Schmidt
1a6564f42f Scripts/Commands: Convert argument parsing of some misc commands to new system (#25308)
* Core/Shared: Make WeatherType smart

* Scripts/Commands: Convert argument parsing of some misc commands to new system

(cherry picked from commit 5bab0e43c6)
2022-02-04 00:27:12 +01:00
Peter Keresztes Schmidt
53b28572bf Scripts/Commands: Convert argument parsing of cast commands to new system (#25309)
(cherry picked from commit cefac75a7d)
2022-02-04 00:27:12 +01:00
Peter Keresztes Schmidt
582b8458ea Scripts/Commands: Fix two unreachable code issues found by PVS-studio (#25311)
(cherry picked from commit 3262ef447a)
2022-02-04 00:27:12 +01:00
offl
fc2f582d4f DB/Quest: Convert & update support for 'Ebon Blade Prisoners' to SAI
Closes #24672

(cherry picked from commit 6611b71457)
2022-02-04 00:27:12 +01:00
offl
192b98e544 DB/Quest: Convert & update support for Borean Tundra escort quests to SAI
Closes #25001

(cherry picked from commit 040fda87ef)
2022-02-04 00:27:12 +01:00
Peter Keresztes Schmidt
5675d62159 Scripts/Commands: Convert argument parsing of message commands to new system (#25305)
(cherry picked from commit f17b9b20f1)
2022-02-04 00:27:11 +01:00
Peter Keresztes Schmidt
b527a031b9 Core/ChatCommands: Add std::wstring argument type (#25302)
(cherry picked from commit 617a769d6f)
2022-02-04 00:27:11 +01:00
Peter Keresztes Schmidt
e9209c3131 Scripts/Commands: Convert argument parsing of most list commands to new system (#25303)
(cherry picked from commit 522a4cb1a6)
2022-02-04 00:27:11 +01:00
offl
a915b42f89 DB/SAI: Update some scripts using CMC cast flag
(cherry picked from commit d714adbc4f)
2022-02-04 00:27:11 +01:00
offl
1f1583142e DB/SAI: Remove SMARTCAST_INTERRUPT_PREVIOUS from Invoker Cast, Cross Cast and Self Cast actions
Ref aae38bec11

Not needed at all for these action types, you can't interrupt player's spells by this event flag and there's no reason to interrupt creature's spells

(cherry picked from commit e931bc11c2)
2022-02-04 00:27:11 +01:00
offl
0715168bce DB/SAI: Make Bonestripper Buzzard & Vulture move to invoker rather than random creature
Ref #20821

(cherry picked from commit 07acb1d439)
2022-02-04 00:27:11 +01:00
offl
3cda63ce04 DB/SAI: Remove SMARTCAST_INTERRUPT_PREVIOUS from more event types
Ref aae38bec11

(cherry picked from commit dddb96d02e)
2022-02-04 00:27:11 +01:00
Giacomo Pozzoni
f8b6137a4c Build/GCC: Raise required version to 8.3.0 (#25297)
Even when building with Clang, make sure to have libstdc++ >= 8

(cherry picked from commit 41d70a5905)
2022-02-04 00:27:11 +01:00
Treeston
6303fbc449 Core/Misc: Update worldserver.conf.dist to match actual defaults.
(cherry picked from commit d717b9dc3e)
2022-02-04 00:27:11 +01:00
Giacomo Pozzoni
a4ee8855c0 CI/GitHub: Build on GCC (#25288)
* CI/GitHub: Build on GCC

* Mark warnings as errors

(cherry picked from commit f4dc3cbd65)
2022-02-04 00:27:11 +01:00
Treeston
c6582096ab Core/Warden: Add Lua checks to Warden (PR #25286)
(cherry picked from commit 0531463a3c)
2022-02-04 00:27:11 +01:00
Maks Szokalski
b5d0a94ead Core/Gossip: Add new helper method to ScriptedGossip for resolving menuId -> sender (PR #25293)
(cherry picked from commit db8bdaa08f)
2022-02-04 00:27:11 +01:00
Treeston
669b6bea21 Core/Warden: Ignore the length value in the database for MEM_CHECK checks. Hi there Aokromes.
(cherry picked from commit fc32c3fd3b)
2022-02-04 00:27:11 +01:00
Treeston
15d75dea10 Core/Warden: More refactors lifted from #25286.
(cherry picked from commit a3971ca4b0)
2022-02-04 00:27:11 +01:00
Treeston
317bb198b1 Core/Warden: Some Warden refactors lifted from #25286.
(cherry picked from commit 5b4288f05f)
2022-02-04 00:27:11 +01:00
Shauren
015cee5f27 Core/Networking: Initialize MPSCQueueIntrusive dummy node without undefined behavior
(cherry picked from commit e1289805fc)
2022-02-04 00:27:11 +01:00
Shauren
0a1acb9c05 Scripts/Spells: Replace RegisterAuraScript with RegisterSpellScript and remove it
(cherry picked from commit 7d4fbf706a)
2022-02-04 00:27:10 +01:00
Shauren
17e7f8497c Scripts/Spells: Convert remaining spell_generic scripts to simplified script registration using new additional constructor argument support
(cherry picked from commit 7a5a010d41)
2022-02-04 00:27:10 +01:00
Naddley
e9a3f452ae DB/Spawns: Added more Bastion intro spawns
Closes #27697
2022-02-03 05:34:32 +01:00
Naddley
d19c8cc9fb DB/Creature: Removed aura from Injured Stormwind Infantry (50047)
Closes #27705
2022-02-03 05:34:30 +01:00
Naddley
48ad9dad85 DB/Spawns: Added spawns for initial Bastion quests
Closes #27673
2022-02-03 05:34:28 +01:00
Shauren
e81b5838a6 Core/Scripts: Unify RegisterSpellScript and RegisterAuraScript macros to do the same thing and implemented passing custom arguments to spell script classes
(cherry picked from commit 75a6a7a0ad)
2022-02-03 00:25:03 +01:00
Shauren
4064b22dd7 Core/Util: Added another template utility - find_type_if
* Trinity::find_type_if - Find a type matching predicate in a given template parameter pack

(cherry picked from commit 84a87d87bf)
2022-02-03 00:24:33 +01:00
Shauren
c37984fc6a Core/Util: Added new utilities
* Trinity::new_from_tuple - same as std::make_from_tuple except allocates object using "new"
* Trinity::is_tuple - detects whether given type is a tuple specialization
* advstd::type_identity - C++20 std::type_identity

(cherry picked from commit 7c08fc863a)
2022-02-03 00:24:10 +01:00
Shauren
348acb105c Core/Commands: Exclude ambigious cast operator overloads from command Variant
Closes #25618

(cherry picked from commit b57530ebb1)
2022-02-03 00:22:24 +01:00