aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-12-05Core/Movement: Use correct root checkShauren
(cherry picked from commit 3e9239a1e552d926caccf7e9a588e8d82ce0b9ee)
2021-12-05Core/Movement: Prevent rooted units from fallingShauren
* Fixes a client freeze Closes #23042 (cherry picked from commit 99a9129a72a594cab8f3b15d9da388cf99afa47b)
2021-12-05Core/Spells: Return CheckCast result from CastSpell (#23236)brotalnia
* Return CheckCast result from CastSpell * Return cast result from UnitAI methods too. (cherry picked from commit 49d0a5bbb69dd352bac0009625ded2c472b66805)
2021-12-05Core/Movement: Fix Warrior's Charge launch visual while jumping backw… ↵Aokromes
(#23243) * Core/Movement: Fix Warrior's Charge launch visual while jumping backwards By Natureknight * fix no-pch (cherry picked from commit cc1a5202995b2c70eb2d0d4af36c593011234e35)
2021-12-05Core/Quest: improve source item deletion logic for items that give quests ↵Wyrserth
(#23250) * Core/Quest: improve source item deletion logic for items that give quests. Prevent deletion of items that aren't supposed to be destroyed (like Demon Scarred Cloak). * Whoops. (cherry picked from commit 49dc8a8e4461063b4500e6b8af4eefadbd6698a1)
2021-12-05Core/AreaTriggers: Initialize _spawnId in constructorShauren
2021-12-04Core/AreaTriggers: Move ScriptName from areatrigger_template to ↵Shauren
areatrigger_create_properties and areatrigger tables
2021-12-04Core/Spells: Initialize EffectIndex of empty effects to their proper values ↵Shauren
instead of always being 0 Closes #27261
2021-12-04Core/Quests: Allow more objects to update their dynamicflags in ↵Shauren
Player::UpdateForQuestWorldObjects
2021-12-04Core/Quests: Optimize Player::HasQuestForGOShauren
2021-12-04Core/SAI: Fixed crash when using SMART_TARGET_CLOSEST_* in areatrigger smart ↵Meji
script (#27336) Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-12-04Core/Conditions: Added CONDITION_SOURCE_TYPE_TRAINER_SPELL (#27321)Meji
2021-12-04Core/Units: Send PlayHoverAnim state in CreateObject if enabled by ↵Shauren
Unit::SetPlayHoverAnim
2021-12-04Scripts/Icecrown Citadel: Fixed a edge case in Blood Quickening questKeader
killer can be a pet (cherry picked from commit a639a99c6c43a6e74883fb03a3a3ec5334da1db3)
2021-12-04Scripts/Icecrown Citadel: The Lich King's Last Stand quest kill credit (#23239)Demonid
Closes #8919 (cherry picked from commit d1c5b3c89792a429f0b07bf5b146540082803745)
2021-12-04Core/Spells: make Four Horsemen debuffs negative (#23253)Trond B. Krokli
By Riztazz Closes #23248 (cherry picked from commit 1e97dfec538b9113134a67b7d25a1c1d2bc7b662)
2021-12-04Spell/Script: Throw Torch must hit only one targetKillyana
(cherry picked from commit ce562415ed49d202de172fc2edab84250c494238)
2021-12-04Core/Achievement: fix mistake related to ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM. ↵Wyrserth
(#23252) (cherry picked from commit b76bcc836cb194e35a534c94054b2bf4b94776be)
2021-12-04Core/Achievement: correctly credit progress for skill-related achievements ↵Wyrserth
when learning a new skill. (#23249) (cherry picked from commit 0a25069db4fd359619fed219e86f7842104677d0)
2021-12-04Core/Misc: Log Map name in assertsjackpoz
(cherry picked from commit 991b2a11bd8aba4351a60a5f0e13153cd3f2c71c)
2021-12-04Core/Misc: Log Spell/Aura name in Spell/Auras assertsjackpoz
(cherry picked from commit 4130384f2e88ba266f75c553c89a351d43e52203)
2021-12-03Core/Vehicles: Fix accessories disappearing on resetjackpoz
(cherry picked from commit 6dae4a747da558ca46a777186d4519c32fc1bf04)
2021-12-03Core/Misc: Apply fatigue when flying toojackpoz
Fix #22856 (cherry picked from commit a76d01278a8f7986414edd0eaefaa42344926dbd)
2021-12-03Remove deprecated codeKillyana
(cherry picked from commit fe311260f7fab3b6fb4d7dd2ee88826820379d94)
2021-12-03Remove Deprecated codeKillyana
(cherry picked from commit fd166025c857477d654cdea6cd6f700e53bfe64b)
2021-12-03Core/Spells: Use 3D distance for calculating speed from movement time ↵Shauren
instead of 2D
2021-12-03Core/Vehicles: Fix multiple vehicle join events on same seat (#23233)Giacomo Pozzoni
(cherry picked from commit d4414af2d4f0736a842c4c596546c9583692ec3c)
2021-12-03Core/Object: Range check vol. 2 (#23226)Jozef Dúc
* Core/Object: Fix all missing parts for #23062 * Update GameObject.cpp (cherry picked from commit 78070163dc6b9bb34ab2d006e9cc218548e861b7)
2021-12-02Core/Scripts: Fix Skadi dismount issuesirikfoll
Closes #23005 (cherry picked from commit fe3bf57aba9a5009e7e17922391a0d9374915ab5)
2021-12-02Scripts/Spells: Fix implementation of #22332 (#23228)Giacomo Pozzoni
Change the way #22332 moved spell damage calculations from SpellEffectDMG to scripts, using OnEffectLaunchTarget and SetEffectValue instead (cherry picked from commit 20772dbf5d10c6ec2891a068fb556c9f5fc7d324)
2021-12-02Core/LFG: Remove dungeon cooldown when completing random dungeonsjackpoz
(cherry picked from commit 24fbbee4b9af7b5226772378dd83b78c103d969d)
2021-12-02Core/Creature: couple refactors/renamingccrs
(cherry picked from commit 69c15f5ae769612c89346c6a308655d0987caae7)
2021-12-02Quest/Script: Breakfast Of ChampionsKillyana
Set both Earthshaker Drum Events to 50% (cherry picked from commit 14445088ea0b03d556619a9e5cd5f138cca09561)
2021-12-02Core/Object: re-change faction template related logsccrs
(cherry picked from commit dfa54d3bf41897dbdfc0acf42f39b173dd39e857)
2021-12-02Core/Misc: standarize a couple logsccrs
(cherry picked from commit aee26eb46727171593ef7cc1d2652a7847dc88fc)
2021-12-02Core/Pet: Change assert to error logjackpoz
Change assert added in 43dec9e4d0b6f7da3c2051624742e9fb8a9bcb31 to error log since charmed creatures lose their AI until next map update (cherry picked from commit 70fcdc687d1227a796c03f6353fc8dbfc4f4aea3) (cherry picked from commit f45ebe71b0d8f6e3008514324a58a92c0db3810e)
2021-12-02Core/CrashHandler: Remove sensitive data from crashlogsjackpoz
(cherry picked from commit 25bcb1a0b2d9326519d9226dfe968caf26bb4e2d) (cherry picked from commit 37478c5ac1efb8e4f19ffc94f444e160600c7b27)
2021-12-02Core/Misc: Fix some GCC 8 warningsjackpoz
(cherry picked from commit 26b6cb0584b50a2540e977cac8fa040c82fe7bb4)
2021-12-02Core/MMaps: Revert PATHFIND_INCOMPLETE handling change in ↵jackpoz
ChaseMovementGenerator in 386b5a6fd948b4866cbd9a8a9892e8777922e9c9 since the current hp reset code in Creature::Update() will reset the hp of bosses as soon as CanNotReachTarget() is true. In case of boss mechanics like Abub'Rekhan at Naxx where the boss throws the player in the air, a PATHFIND_INCOMPLETE path is returned. The code in Creature::Update() should be modified to wait a few seconds before resetting the hp. PATHFIND_NOPATH / PATHFIND_INCOMPLETE don't really mean that the Creature can't attack the player anyway either. (cherry picked from commit d910ffd77949f422bd08f12079866962fb53c4dc)
2021-12-02Core/Scripts: Rename recent GameObject spell overloads to fix GCC warningsjackpoz
Rename recent GameObject spell overloads (they used to accept only Unit as parameters) to fix GCC warnings about partial function override. (cherry picked from commit e3a9a9bfb2cba3fc1f6ed616b07fb0ea88de461f)
2021-12-02Scripts/Commands: Add .debug asan commandsjackpoz
Add ".debug asan memoryleak" and ".debug asan outofbounds" commands to trigger Address Sanitizer warnings at runtime (or other dynamic analysis tools) (cherry picked from commit 71d15ea25be3e86646faaa3266617a0b8177972f)
2021-12-02Shared/Metric: Fix a rare memory leakjackpoz
Fix a memory leak in Metric happening only when enabling/disabling Metric from configs at runtime, leaking the metric added between last SendBatch() call and the ScheduleSend() call in the same function. The only way to reproduce this is to actually freeze the thread calling SendBatch(), disable metric, reload config, unfreeze the thread. (cherry picked from commit 0d1ff7446dce7b0641f49ac55a008669838612cd)
2021-12-02Scripts/Guards: Fix infinite loop in npc_air_force_botsjackpoz
Fix infinite loop in npc_air_force_bots happening when aura 38067 was removed, triggering MoveInLineOfSight() that would add back the aura. Only 1 aura add/remove for guard for player is allowed now. (cherry picked from commit 844e7ee9262a5ba035ac9e8a6ffc298fb97fd3a9)
2021-12-02Core/Commands: Fix .cheat god command letting you diejackpoz
Fix .cheat god command still letting you die with Area Aura like Slime near Thaddius, broken since 777b287dff8bce806849a26d59fe40f864c385ed (cherry picked from commit f26f716714fefa2af4c6e3eea263206682d45236)
2021-12-02Core/Maps: Fix crash caused by setActive(false) called after DespawnOrUnsummon()jackpoz
Fix crash caused by WorldObject::setActive(false) called after WorldObject::DespawnOrUnsummon() happening because the WorldObject would be set as not active but then Map::RemoveFromActiveHelper() would not be called because of not being in world anymore. Whenever setActive() gets desync'd with what Map actually contains a rare crash would happen since Map only reads a few values of the active WorldObject, making it hard to reproduce. If this happens again some ASSERT calls should be added (or a check in Map::RemoveFromMap() could be added about if the WorldObject is in Map::m_activeNonPlayers container). (cherry picked from commit 1c833f28e471e3787f1d328e44af5f065ad9ca8c)
2021-12-02Core: Restore reset in EscortAI::InitializeAI (#23197)Killyana
Closes #23008 (cherry picked from commit 56b65329e5dc2fb04d5b1d6068d957490146ee89)
2021-12-02Core/Object: Range check (#23179)Jozef Dúc
* Should solve #23062. All credits to @xvwyh * Remove unused variables * Remove unused variable * Cast int32 to uint32 * Remove G3D headers from core header file * Change door distance * Update GameObject.cpp Add newline * Update GameObject.h Indentation (cherry picked from commit 32e1de39a26628dcb64bc21ad415afb2ad938925)
2021-12-02Core/GameObject: Code cleanupjackpoz
(cherry picked from commit 16a154c4e87ff1ff89323a8960bf601e6c18589b)
2021-12-02Core/GameObject: Remove summoned gobs properly from the map without ↵Killyana
effecting other cases Ref https://github.com/TrinityCore/TrinityCore/commit/0e8e3828f48120629b642d0de1db704fd0bb86cb Ref #23115 (cherry picked from commit 9db64666dc30b1f8cad904bf8aeea1c9daf41c95)
2021-12-02Scripts/Commands: add some missing checks for .guild create command (#23201)ForesterDev
* Core/Conditions: implement CONDITION_GAMEMASTER * Scripts/Commands: add some missing checks for .guild create command (cherry picked from commit ae8750716f63ddc41f21bb38ceafe949d7260f0e)