Commit Graph

19325 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Peter Keresztes Schmidt
86bfde389a Scripts/Commands: Convert argument parsing of event commands to new system (PR #25275)
(cherry picked from commit 7bfeb03c13)
2022-02-03 00:19:14 +01:00
Peter Keresztes Schmidt
3c82863c52 Core/ChatCommands: Check whether a passed numeric enum value is valid (#25285)
(cherry picked from commit 4286e7aa02)
2022-02-03 00:18:48 +01:00
Peter Keresztes Schmidt
3ba767c438 Scripts/Commands: Convert argument parsing of gm commands to new system (#25279)
(cherry picked from commit 9c9e8c7d58)
2022-02-03 00:10:31 +01:00
Peter Keresztes Schmidt
888d217c16 Scripts/Commands: Convert argument parsing of remaining go command to new system (#25284)
(cherry picked from commit 1aadf6c6d1)
2022-02-03 00:08:21 +01:00
Carbenium
a773039211 Scripts/Commands: Convert argument parsing of honor commands to new system
(cherry picked from commit 515a34f64f)
2022-02-02 23:02:41 +01:00
Treeston
eaa3c7e5a0 Core/Warden: Add .debug warden force, allowing you to force specific warden checks to be sent
(cherry picked from commit f04f4e91ff)
2022-02-02 22:47:55 +01:00
Peter Keresztes Schmidt
dc5f7ee5fc Scripts/Commands: Convert argument parsing of deserter commands to new system (PR #25276)
(cherry picked from commit c952cb7f71)
2022-02-02 22:32:46 +01:00
Peter Keresztes Schmidt
4aa1c74232 Scripts/Commands: Convert argument parsing of cheat commands to new system (PR #25277)
(cherry picked from commit 4707e05938)
2022-02-02 22:21:51 +01:00
Peter Keresztes Schmidt
ec26736e30 Scripts/Commands: Convert argument parsing of most debug commands to new system (PR #25260)
(cherry picked from commit 76f309b4e8)
2022-02-02 22:13:50 +01:00
Treeston
e0ddc676d6 Scripts/Commands: Move .debug asan command bodies inside #ifdef ASAN
(cherry picked from commit e18f7aaa4d)
(cherry picked from commit 0b13fc1926)
(cherry picked from commit 5ecbe93f7d)
2022-02-02 21:27:52 +01:00
Peter Keresztes Schmidt
37777ac6e8 Scripts/Commands: Convert argument parsing of ahbot commands (PR #25264)
(cherry picked from commit 426513ec8e)
2022-02-02 21:17:51 +01:00
Peter Keresztes Schmidt
1c246cc980 Core/ChatCommands: Parse SpellInfo also from enchant, glyph, talent and trade links (PR #25270)
(cherry picked from commit 9df61fd111)
2022-02-02 21:08:29 +01:00
Carbenium
c8b0d4e6d8 Scripts/Commands: Convert argument parsing of bf commands to new system
(cherry picked from commit fa6a8e8f64)
2022-02-02 20:50:49 +01:00
Peter Keresztes Schmidt
fed56790ca Core/ChatCommands: Add Variant.get<typename> overload (PR #25267)
Co-authored-by: Treeston <treeston.mmoc@gmail.com>
(cherry picked from commit dfeaa2e81f)
2022-02-02 20:50:36 +01:00
Treeston
673521bc87 Core/ChatCommands: Move Trinity::ChatCommands::Variant from boost::variant to std::variant (for real this time)
(cherry picked from commit ffc3e355fe)
2022-02-02 20:49:42 +01:00
Peter Keresztes Schmidt
477618bd1f Core/ChatCommands: Add support for std::array-type arguments (#25261)
(cherry picked from commit 30a825e2ac)
2022-02-02 20:32:24 +01:00
Shauren
c65340e761 Core/Spells: Implement SPELL_EFFECT_TRIGGER_SPELL delay (stored in MiscValue) 2022-02-02 19:50:22 +01:00
Shauren
b6bc8a50ac Core/Spells: Correct implementation of SPELL_ATTR2_TRIGGERED_CAN_TRIGGER_PROC, SPELL_ATTR3_TRIGGERED_CAN_TRIGGER_PROC_2, SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED and rename them (SPELL_ATTR2_ACTIVE_THREAT, SPELL_ATTR3_NOT_A_PROC, SPELL_ATTR3_CAN_PROC_FROM_PROCS) 2022-02-02 13:56:49 +01:00
Shauren
7261592364 Warning fixes 2022-02-02 11:55:04 +01:00
Shauren
950db60435 Core/Pets: Updated pet summoning for latest client version (5 Call Pet spells and stable size 200) 2022-02-02 00:08:37 +01:00
Shauren
d6a2461fc7 Core/Misc: GCC build fix
Closes #27707
2022-02-01 23:44:14 +01:00
Shauren
fd9eb28322 Core/Pets: Adjust pet slot saving logic after constant changes in 22e823b5f9 2022-01-31 23:30:00 +01:00
Shauren
22e823b5f9 Core/Pets: Change PET_SAVE_NOT_IN_SLOT constant from 100 to -1 to truly avoid conflicts when growing stable size and change PET_SAVE_AS_DELETED from -1 to -2 2022-01-31 21:50:32 +01:00
Shauren
8349444749 Core/Pets: Save last summoned pet number in characters table 2022-01-31 21:34:48 +01:00
Shauren
0ef41fcda2 Core/Pets: Removed deprecated enum 2022-01-31 19:53:11 +01:00
Shauren
e458144442 Core/Pets: Removed storing stable slot count in db 2022-01-31 14:34:05 +01:00
Shauren
c654c15bcd Core/PacketIO: Removed handlers for two pet opcodes that no longer exist 2022-01-31 14:31:13 +01:00
Shauren
3642e3a765 Core/Pets: Fixed saving pets put in stable while not being summoned
Closes #26599

(cherry picked from commit 4acd6e1d38)
2022-01-31 00:27:29 +01:00
jackpoz
238d5b1587 Core/Pet: Fix assert triggered by e203ecda88
(cherry picked from commit 22a5b0fcde)
2022-01-31 00:27:02 +01:00
Giacomo Pozzoni
40d882b754 Core/Pet: Attempt to fix assertions triggered when summoning pets (#26501)
* Core/Pet: Attempt to fix an assertion triggered when re-summoning the current pet

* Core/Pet: Attempt to fix an assertion triggered when stabling a pet while in a vehicle

* Core/Pet: Attempt to fix an assertion triggered when stabling a pet and casting spell 6962

* Core/Pet: Attempt to fix an assertion triggered when casting spell 6962 while being dead

* Core/Pet: Attempt to fix an assertion triggered when summoning a pet while on vehicle 34775

* Handle cases in a generic way

* Code cleanup

* Core/Pet: Attempt to fix an assertion triggered when summoning a pet while on vehicle 34775 with a new character

(cherry picked from commit e203ecda88)
2022-01-31 00:26:54 +01:00
Shauren
33e747bc8f Core/Pets: Add missing nullptr check
(cherry picked from commit 0152878de5)
2022-01-31 00:25:17 +01:00
Shauren
688d1d9533 Core/Pets: Fixed crash happening when current pet is forcibly removed while being temporarily unsummoned (like on a mount)
(cherry picked from commit d163735abd)
2022-01-31 00:24:51 +01:00