Commit Graph
6460 Commits
Author SHA1 Message Date
Treeston be9dadc189 Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR #25335)
(cherry picked from commit cd30e0b86ce6ee88386a91cebdf353fc55805c57)
2022-02-04 00:27:13 +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 a41bbd9ad9adedb15c7133bdef1575a6ec0eb1ab)
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 5bab0e43c627c949bb5fb1d7fd014855c6c02b8e)
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 cefac75a7d17ea3263f24b6e0fb63c11f92a04ac)
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 3262ef447a9c41bef9a9a3d11f5a89a63137c4df)
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 6611b7145746d5bc18541f7f3a4b641739877740)
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 040fda87ef0a7a2c7a61dc2fdc3c478c5adf3dd6)
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 f17b9b20f10ed8e14cdddef395ff467053068d35)
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 522a4cb1a66539a656c44342d7652c3065a90588)
2022-02-04 00:27:11 +01:00
Shauren 0a1acb9c05 Scripts/Spells: Replace RegisterAuraScript with RegisterSpellScript and remove it
(cherry picked from commit 7d4fbf706ae19481468901ccd65c497fcabe56bf)
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 7a5a010d415014a1cf78b1f6186d78a39a18c70a)
2022-02-04 00:27:10 +01:00
Peter Keresztes Schmidt 86bfde389a Scripts/Commands: Convert argument parsing of event commands to new system (PR #25275)
(cherry picked from commit 7bfeb03c136f18fda73474054c837f4fe8f11136)
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 4286e7aa02e777268b25d8a5bcc1ee87f7b16c4d)
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 9c9e8c7d58cd0e939330089cfb555945ebbf73eb)
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 1aadf6c6d173e593eef0e9976e51a7189a54a8ce)
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 515a34f64f200ea0fb9722914b76ab8abd358891)
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 f04f4e91ff3afbf89f30659b85e8593c3206138e)
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 c952cb7f710f0aa558b1c94474be8d188967d019)
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 4707e059386333b6ceec419d0d2e684d9106aef6)
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 76f309b4e899d4f450a8448d49c1aa05f9d4e785)
2022-02-02 22:13:50 +01:00
Treeston e0ddc676d6 Scripts/Commands: Move .debug asan command bodies inside #ifdef ASAN
(cherry picked from commit e18f7aaa4d1bc9f6ad4b524c25fd3f111493b774)
(cherry picked from commit 0b13fc192698f65cc6e338ef92c22d4d783281b9)
(cherry picked from commit 5ecbe93f7d75ea3c4808ce45ccc7d14e1d42b26b)
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 426513ec8e154df7c13ba98371513dd9f6d2cb9d)
2022-02-02 21:17:51 +01:00
Carbenium c8b0d4e6d8 Scripts/Commands: Convert argument parsing of bf commands to new system
(cherry picked from commit fa6a8e8f647705c4631b7ed5d2dbd41e3b1d6b6b)
2022-02-02 20:50:49 +01:00
Treeston 673521bc87 Core/ChatCommands: Move Trinity::ChatCommands::Variant from boost::variant to std::variant (for real this time)
(cherry picked from commit ffc3e355fe2adfe48d37759091a537b699b12753)
2022-02-02 20:49:42 +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 9147918363 Core/Pets: Fixed automatic resurrecting pets on battleground graveyards
Closes #25289

(cherry picked from commit 74a0d579eef07c013cc8deff930a975cf19c487f)
2022-01-31 00:20:53 +01:00
Shauren ca92686b44 Core/Pets: Pet management refactoring (#25191)
* Core/Pets: Pet management refactoring

* Preload basic pet data on character login with async query
* Load additional pet data (declined names/auras/spells/cooldowns) using async query after we are sure pet loading will succeed
* Remove all select queries related to pet stable/unstable
* Remove all silent pet deletions except explicit UI-triggered abandons
* Fixed displaying stable master content when current pet is not summoned
* Allow to stable/swap unsummoned current pet

Closes #3610
Closes #21266

(cherry picked from commit 5c1fc5e3876549f5ed2b9051fffb6f3d94a67d7a)
2022-01-31 00:17:21 +01:00
Teleqraph af0edf5afc Scripts/Spells: Moved Blessing of Faith script to spell_items (#27692) 2022-01-30 13:10:08 +01:00
Shauren 78283e3ef2 Scripts/Spells: Fixed Holy Shock visuals 2022-01-30 12:55:57 +01:00
Nyr 0d9b1072b5 Scripts/Spells: Updated Holy Shock spell script.
* renamed related enums.
* removed unnecessary rank dependency checks.
2022-01-30 12:55:57 +01:00
Teleqraph 72839e660e Scripts/Spells: Judgment (Holy) will now apply Rank 3 debuff if the paladin knows it (#27685) 2022-01-30 00:10:04 +01:00
Shauren 7044204130 Core/Objects: Cleanup SmoothPhasing code - move to separate files and better integrate it with visibility system 2022-01-29 20:35:25 +01:00
RobingadandShauren 5b57722211 Scripts/Spells: Fix shaman Lava Surge proc (#27667)
Co-authored-by: Shauren <[email protected]>
2022-01-28 11:18:45 +01:00
Robingad 1696d73860 Scripts/Spells: Move shaman Lava Burst crit chance calculation to scripts and add Lava Burst Overload (#27676) 2022-01-27 23:23:37 +01:00
RobingadandShauren 3e725e1d25 Scripts/Spells: Fix shaman Earthquake (#27620)
Co-authored-by: Shauren <[email protected]>
2022-01-27 22:18:46 +01:00
Peter Keresztes Schmidt ec44c8296d Scripts/Commands: Use enum type arg for HandleDebugAnimCommand (PR #25256)
* Core/Shared: Make Emote enum smart
* Scripts/Commands: Use enum type arg for HandleDebugAnimCommand

(cherry picked from commit 86dc58974a46b554042f33df674e3e40ef0cec1e)
2022-01-26 22:16:05 +01:00
Peter Keresztes Schmidt 3923650aeb Core/ChatCommands: Add support for enum type arguments (PR #25242)
(cherry picked from commit 5e40eb20e2789b86d4786d86b4bbb8ae83de5e1e)
2022-01-26 22:13:06 +01:00
Peter Keresztes Schmidt 2e3c612c80 Core/Unit: Make HandleEmoteCommand typesafe (#25249)
* Scripts/ScarletMonastery: Fix wrong emote during Headless Horseman encounter

* Scripts/HoR: Fix wrong emote during escape event

* Core/Unit: Make improve type safety of HandleEmoteCommand

Change argument type to the expected enum type Emote

* Scripts/CoS: Use SetUInt32Value to set UNIT_NPC_EMOTESTATE

UNIT_NPC_EMOTESTATE is no flag field

(cherry picked from commit 6c7837f947ff4eb5110a116a371daa6f9e2b3bbe)
2022-01-26 21:46:51 +01:00
Aokromes e538d42f12 Script/Quest: The Light of Dawn (#25243)
remove incorrect check, source:
https://www.wowhead.com/spell=53606/the-light-of-dawn
Flags
Can be used while dead

https://www.wowhead.com/quest=12801/the-light-of-dawn#comments:id=1495830
https://www.wowhead.com/quest=12801/the-light-of-dawn#comments:id=374127
(cherry picked from commit 681c738c61cdf64728fcd86d7598666ab2fd8199)
2022-01-26 20:44:35 +01:00
Gildor 27c70ca728 Scripts/Naxxramas: Adjust Frogger event timer (#25214)
* Scripts/Naxxramas: Adjust Frogger event timer

Co-authored-by: Carbenium <[email protected]>
(cherry picked from commit 7035a9caf12c72d6710bfec71dc2641eccf82eaf)
2022-01-26 19:51:48 +01:00
Rothend 6f10847512 Script/Quest: fix (More) Torch Catching (#24907)
* Script/Quest: fix (More) Torch Catching.

Closes #24893

Co-authored-by: Carbenium <[email protected]>
(cherry picked from commit a375f15ae26472202daf02c88d292f2ce6a1470f)
2022-01-26 19:50:50 +01:00
Treeston 319ddd9bcd Core/Warden: Warden refactors (PR #25235)
(cherry picked from commit 6116e5b38522ccfb00f6c941c75482e05b4c0799)
2022-01-26 19:42:11 +01:00
jackpoz 26894508ef Core/Misc: Code cleanup
(cherry picked from commit dd28cecda36ed3912be39d0c3caefef910db707d)
2022-01-26 19:18:46 +01:00
jackpoz b3f0d92b81 Scripts/Command: Fix .mmap loc always printing command usage
(cherry picked from commit 0eb49a3cc91a11ca98cce819dd189f1519684c5f)
2022-01-26 19:16:55 +01:00
Jinnaix 169b0296e1 Scripts/BlackwingLair: Suppression Device Room (PR #25199)
Co-authored-by: offl <[email protected]>
Co-authored-by: Giacomo Pozzoni <[email protected]>
Co-authored-by: Treeston <[email protected]>
(cherry picked from commit de56ed87368104780ddfb2e9c082076c9c83d575)
2022-01-26 18:51:07 +01:00
Giacomo Pozzoni ffd85f9139 Scripts/Comamnds: Improve ".debug objectcount" command (#25208)
* Scripts/Comamnds: Improve ".debug objectcount" command

Include the top 5 most common creatures in the map

* Use C++ features to copy data

* Fix build warnings

* Update src/server/scripts/Commands/cs_debug.cpp

Co-authored-by: Shauren <[email protected]>

* Update src/server/scripts/Commands/cs_debug.cpp

Co-authored-by: Shauren <[email protected]>

* Update src/server/scripts/Commands/cs_debug.cpp

Co-authored-by: Shauren <[email protected]>

* Move CreatureCountWorker out of function and use template for unhandled cases

* Code cleanup

Co-authored-by: Shauren <[email protected]>
(cherry picked from commit bd5e832a648aadf1d1be94f913ea00b67398f249)
2022-01-26 16:22:00 +01:00
jackpoz a23215c73d Scripts/Kologarn: Apply CREATURE_FLAG_EXTRA_NO_COMBAT on NPC_ARM_SWEEP_STALKER and NPC_RUBBLE_STALKER
(cherry picked from commit 6ad6d9e67069ef048c10afbdd52627b8c765a010)
2022-01-26 14:39:22 +01:00
Gildor 3780c05285 Scripts/Naxxramas: Frogger event improvements (#25202)
* Scripts/Naxxramas: Frogger event improvements
* Prevent Living Poison accumulation
* Now Living Poison cast Explode

* check for a nearby player

* move event to the frogger trigger's AI

* Initialize and removing unnecessary things

* applying suggestions

* remove unnecessary header

* Rename 9999_99_99_99_world.sql to 2020_08_05_00_world.sql

(cherry picked from commit 174ac958009222aeef83520101a28963f8c63b0e)
2022-01-26 14:38:57 +01:00
Ovahlord 785b6f294f Scripts/World: updated Training Dummy script to modern model and removed pointless GameTime shenanigans
(cherry picked from commit 9bf57958e36721fa301f62c4a5c6bd88c58edc28)
2022-01-26 14:37:31 +01:00
Carbenium c302ace100 Scripts/AzjolNerub: Fix potential error in pound spell script
Cast damage spell in AfterEffectApply instead OnEffectHitTarget. This avoids the scenario where we try to apply an aura to a potential dead target.

Ref #21856

(cherry picked from commit 0dd4b685df53d9b61a53aaf3a577c2a9ed8cdd47)
2022-01-26 14:37:05 +01:00