aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-01-26Script/Quest: fix (More) Torch Catching (#24907)Rothend
* Script/Quest: fix (More) Torch Catching. Closes #24893 Co-authored-by: Carbenium <carbenium@outlook.com> (cherry picked from commit a375f15ae26472202daf02c88d292f2ce6a1470f)
2022-01-26Core/Warden: Warden refactors (PR #25235)Treeston
(cherry picked from commit 6116e5b38522ccfb00f6c941c75482e05b4c0799)
2022-01-26Core/SAI: Fix creatures casting with flag SMARTCAST_COMBAT_MOVE not ↵Giacomo Pozzoni
switching to melee when the school of the spell they are trying to cast gets silenced (and other cases of spell failure) (#25226) * Core/SAI: Fix creatures casting with flag SMARTCAST_COMBAT_MOVE not switching to melee when the school of the spell they are trying to cast gets silenced (and other cases of spell failure) * Core/SAI: Retry casting after 500ms if a cast failed Fixes #24914 (cherry picked from commit 63a6e1e0480df659e773a3df5e1acc2027ebcf15)
2022-01-26Core/Misc: Code cleanupjackpoz
(cherry picked from commit dd28cecda36ed3912be39d0c3caefef910db707d)
2022-01-26Scripts/Command: Fix .mmap loc always printing command usagejackpoz
(cherry picked from commit 0eb49a3cc91a11ca98cce819dd189f1519684c5f)
2022-01-26Core/Warden: Fix Warden reporting false positive checksjackpoz
Issue introduced in 210176fd915cf4ba16f428d3c1a249a71f4aa7a7 (cherry picked from commit c04f53b886ec27dd8cf100524fe93a71dc4e1aa1)
2022-01-26Scripts/BlackwingLair: Suppression Device Room (PR #25199)Jinnaix
Co-authored-by: offl <11556157+offl@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Treeston <treeston.mmoc@gmail.com> (cherry picked from commit de56ed87368104780ddfb2e9c082076c9c83d575)
2022-01-26Core/Misc: Fix Windows 32 bits buildjackpoz
Close #25789 (cherry picked from commit 1cafd4ef74350cb3656917e8e033a5e21dcce193)
2022-01-26Core/CrashHandler: Skip logging stack trace of the thread writing the crash ↵Shauren
log, it was launched by windows with same context as crashing thread (cherry picked from commit dd34651f4d42ca598b2f1b2ed32e27b4742f4be7)
2022-01-26Core/CrashHandler: Remove logging function variation depending on crash ↵Shauren
reason and print directly to file, not to temporary buffer (cherry picked from commit c5e1b49e8c02386a0e9edf682692dc6d46cc862f)
2022-01-26Core/CrashHandler: NULL -> nullptrShauren
(cherry picked from commit 68fdfcaa507d06ce8e823e7848f4c58ef1e62732)
2022-01-26Core/CrashHandler: #ifdef cleanup to make VS not choke when parsing, fixed ↵Shauren
file being all red in editor (cherry picked from commit 39c5e03b749d44df346b8f37aed3eb898526365a)
2022-01-26Core/CrashHandler: Attempt to extract C++ exception object in uncaught ↵Shauren
exception hander (cherry picked from commit 83ed35fe62c16f5697f253a9a44bba7dcb83e80d)
2022-01-26Core/Units: add new functionality for units to block or enable combat ↵Ovah
interactions (#25168) * Core/Units: add new functionality for units to block or enable combat entirely via helper to reflect what CREATURE_DIFFICULTYFLAGS_IGNORE_COMBAT and client AI functions imply * yeah... * Nuke Creature::IsCombatDisallowed helper as its unused by now * no combat extra flag may now be changed on transforms if the transformed entry does not have the flag (cherry picked from commit 764f22fc9157ad184baa38995ee4e2d821299935)
2022-01-26Core/Updater: Fix detection of the mysql binary when a directory is given as ↵Carbenium
path This ensures that we never pass a directory path StartProcess which results in a crash. Closes #25216 (cherry picked from commit 98b1b20d6beea5e2fdea7e404e8d880953d4b2fb)
2022-01-26Core/Misc: Code cleanupjackpoz
(cherry picked from commit 3c28573d02db98ae8d7a41e04b9715da0556836b)
2022-01-26Core/Unit: Creatures' minions now engage in combat if their controller is ↵Jinnaix
attacked (PR #25219) Closes #24340 (cherry picked from commit db9072a183cd93014d708d67ae3a762fdbf5d095)
2022-01-26Core/Battlegrounds: Fix error messages in Isle of Conquestjackpoz
Fixes #24032 (cherry picked from commit 02a018ea1394452896ecdd87c98df5fc8655046d)
2022-01-26Core/SAI: Fix creatures casting spells while moving with flag ↵jackpoz
SMARTCAST_COMBAT_MOVE Fixes #24019 (cherry picked from commit 2910d0fb2436d9865d792ef92cb415f831a0af93)
2022-01-26Scripts/Comamnds: Improve ".debug objectcount" command (#25208)Giacomo Pozzoni
* 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 <shauren.trinity@gmail.com> * Update src/server/scripts/Commands/cs_debug.cpp Co-authored-by: Shauren <shauren.trinity@gmail.com> * Update src/server/scripts/Commands/cs_debug.cpp Co-authored-by: Shauren <shauren.trinity@gmail.com> * Move CreatureCountWorker out of function and use template for unhandled cases * Code cleanup Co-authored-by: Shauren <shauren.trinity@gmail.com> (cherry picked from commit bd5e832a648aadf1d1be94f913ea00b67398f249)
2022-01-26Core/Authserver: Deprecation of sha_pass_hash (PR #25138)Treeston
see also #25157 (cherry picked from commit 44a3aad0af4bdd132b8761761dc83df2d7d6c601)
2022-01-26Scripts/Kologarn: Apply CREATURE_FLAG_EXTRA_NO_COMBAT on ↵jackpoz
NPC_ARM_SWEEP_STALKER and NPC_RUBBLE_STALKER (cherry picked from commit 6ad6d9e67069ef048c10afbdd52627b8c765a010)
2022-01-26Scripts/Naxxramas: Frogger event improvements (#25202)Gildor
* 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-26Scripts/World: updated Training Dummy script to modern model and removed ↵Ovahlord
pointless GameTime shenanigans (cherry picked from commit 9bf57958e36721fa301f62c4a5c6bd88c58edc28)
2022-01-26Scripts/AzjolNerub: Fix potential error in pound spell scriptCarbenium
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-26Core/Common: Move old-style pointer+size HexStr methods to Trinity::Impl ↵Treeston
where they can't hurt anyone (cherry picked from commit 7b8b999516a824b0c417631a77f133eb47b8b2f4)
2022-01-26Core/Misc: Fix compile errors found with msvc /permissive-Shauren
(cherry picked from commit b3db50a3b41b2db209327387f59afa1c40532773)
2022-01-26Core/Metric: Require WITH_DETAILED_METRICS CMake flag for MMaps metricjackpoz
(cherry picked from commit 8ad6bd8a9ba45ef22ed0275fd402da17666d8522)
2022-01-26Core/Misc: Fix static analysis issues (#25194)Giacomo Pozzoni
(cherry picked from commit 07fd84b679fd6958b7e669a96c78783875e1b949)
2022-01-26Scripts/Outland: Convert 'Captain Tyralius' to SAI (#25188)Trond B. Krokli
Closes #24676 (cherry picked from commit 7f2874a7aceb13f5c8898acbeb7f5a296eb7d610)
2022-01-24Scripts/AzjolNerub: Update Anub'Arak encounter to current coding standards ↵Peter Keresztes Schmidt
(#25192) * Scripts/AzjolNerub: Update Anub'Arak to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Darter to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Assassin to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Guardian to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Venomancer to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Impale Target to current coding standards * Scripts/AzjolNerub: Update Anub'Arak Pound spell to current coding standards * Scripts/AzjolNerub: Update Anub'Arak carrion beetles aura script to current coding standards (cherry picked from commit dab8768c183dc43f970187a65961fc8fce647c29)
2022-01-24Scripts/Gundrak: Update Slad'ran encounter to current coding standards (#25180)Peter Keresztes Schmidt
* Scripts/Gundrak: Update Slad'Ran's script to use TaskScheduler * No functional changes * Scripts/Gundrak: Update Slad'Ran's adds to use TaskScheduler * No functional changes (cherry picked from commit 7abe9d66d049204240060f1976c51ff2297bf266)
2022-01-24 Scripts/Gundrak: Update Drakkari Colossus encounter to current coding ↵Peter Keresztes Schmidt
standards (#25182) * Scripts/Gundrak: Update Drakkari Colossus to current coding standards * no functional changes * Scripts/Gundrak: Update Drakkari Elemental to current coding standards * no functional changes * Scripts/Gundrak: Update Living Mojo to current coding standards * no functional changes (cherry picked from commit dd8666f38d6aad6401e8e303c57c62255856f5a4)
2022-01-24Scripts/MoltenCore: Update Golemagg encounter to current coding standards ↵Peter Keresztes Schmidt
(#25183) * Scripts/MoltenCore: Update Golemagg to current coding standards * no functional changes * Scripts/MoltenCore: Update Core Ranger to current coding standards * no functional changes (cherry picked from commit c88234727b47c037557eba6db8ae8ef1dee4eed7)
2022-01-24Scripts/AhnKahet: Update Herald Volazj to current coding standardsCarbenium
* convert to BossAI * no functional changes (cherry picked from commit 90543fd41db309d924a3d45939bd23cffb9f5b67)
2022-01-24Scripts/AV: Update Vanndar's script to use TaskSchedulerCarbenium
* No functional changes (cherry picked from commit 799d5376d8d7e2c9c0fc1e27cfadf2669a8724d0)
2022-01-24Core/Common: Merge TimeTrackerSmall with TimeTrackerCarbenium
(cherry picked from commit 228696bf80bcd55d35445cd24ae119020c310f88)
2022-01-24Core/Common: Add a std::chrono interface to TimeTrackerSmallCarbenium
New methods: TimeTrackerSmall(Milliseconds expiry); void Update(Milliseconds diff); void Reset(Milliseconds expiry) Milliseconds GetExpiry() const Removed methods: int32 GetExpiry() const Also add basic unit tests. Core/Scripts: Use std::chrono interface of TimeTrackerSmall (cherry picked from commit e55516348dbabaa8c9d559426315f3f70967acaa)
2022-01-24Core/DBLayer: Add nicer api for SQLQueryHoldersShauren
(cherry picked from commit 9b806c6b5d9e83f8614523317a44742954f97744)
2022-01-24Core/Misc: Fix static analysis issues (#25178)Giacomo Pozzoni
(cherry picked from commit 7cf122fc2a604bae77d0b935536c41ec9203e62d)
2022-01-24Core/Common: Allow config settings to be loaded as optional (PR #25137)Treeston
If the config setting is not present, returns the default without issuing a warning. (cherry picked from commit 5ad064976edfc931cdda6faffe723d7c3dfb0ae4)
2022-01-24Scripts/BlackrockSpire: Fix encage event of Pyroguard encounter (#25177)Jinnaix
(cherry picked from commit e3aa87641f08ecaa42ebef1915d7de88dc73ef25)
2022-01-24Log sync db queries in World::Update() loop (#25174)Giacomo Pozzoni
* Core/Misc: Log sync queries on critical path * Fix build * Rename * Fix warning * Fix no-pch * Change WarnAboutSyncQueries() to be header-only (cherry picked from commit deceb11b5fc52c8036f249d628ccc69ca5d022b3)
2022-01-24Core/Commands: Initialize commands on startup instead of first useShauren
(cherry picked from commit 0fc7b50c041131b3d6dbc011f29d6547c9ca0660)
2022-01-24Core/Mail: Load mails at login instead of on demand when queried by packets ↵Shauren
(logging in always sends one of the packets that cause mail loading anyway) (cherry picked from commit 57eaab80d9e1f6f25274f376da16e1f2f67ab4bc)
2022-01-24Core/Misc: Replace database query in WorldSession::HandleAddFriendOpcode ↵Shauren
with async version (cherry picked from commit 2f0893d279ddab86ae7c3e4fd1d7a47b15e938f7)
2022-01-24Core/SAI: Ignore SAI while evading (#25108)Giacomo Pozzoni
(cherry picked from commit 420b21be9860367c82537634fb792a4af3d9be9b)
2022-01-24Core/Loot: Prevent loot already looted item (#25084)Gildor
(cherry picked from commit 586c00fe2e226da99968ebe763d3226c6134658c)
2022-01-24Scripts/Quest: Force of Neltharaku quest credit (#24807)Trond B. Krokli
* Scripts/Quest: Force of Neltharaku quest credit **Description:** Suggested solution to resolve the kill credit double cast issue in the quest "The Force of Neltharaku" (10854). by Rushor **Changes proposed:** - Remove duplicate spell casts in the zone quest script - Remove commented-out script section - Set a couple of unit flags (anim/stand/hover) - Move return new creature script override to end of script - Move PlayerGUID, FlyTimer, and Tapped to Private - Add DB flight movement control to Enslaved Netherwing Drake - Add SpellMgr MaxAffectedTargets = 1 for spell 38762 - Add movement enum POINT_MOVE_UP - Add missing enum for quest ID **Target branch(es):** 3.3.5/master - [X] 3.3.5 - [X] master **Issues addressed:** Closes #24796 **Tests performed:** (Does it build, tested in-game, etc.) Pending for now. **Known issues and TODO list:** (add/remove lines as needed) - [X] Open PR in draft mode until testing is cleared - [ ] Compile and create local server - [ ] Test changes on local server * Rename 9999_99_99_99_world.sql to 2020_07_29_00_world.sql Co-authored-by: Rushor <Rushor@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit e0dae8feb6607b5190d14b56ecfc10bbfa667c95)
2022-01-24Core/World: added startup log outputs for query cache initialization for ↵Ovah
detailed information. * the console will now throw a log when the feature is disabled * additionally the console will now print how long it took to initialize (cherry picked from commit 210f552ac56979430f1349006c1945b29883a2bc)