aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-12-10Core/Logs: Allow to log startup logs into Database appenderjackpoz
(cherry picked from commit dbd8b3fc63d1b218df755f34fd7185553f2db3a5)
2021-12-10Script/Dalaran: don't allow Dalaran faction guards to teleport a player that ↵Wyrserth
has the Trespasser! debuff. (#23373) (cherry picked from commit 5016f588d5f20ef8eb0f3da9c3c92bbac8e132ee)
2021-12-10Core/Log: 1f85348 followupccrs
add missing logger entries (cherry picked from commit fb28cee6eeb97b722ebce54a444de9f13717752c)
2021-12-10Scripts/ZulGurub: general instance related refactoring/updatingccrs
plus couple event-spells-ai related corrections plus codestyle cleanup (cherry picked from commit 7b2defe5a0e645ab88e48df2d8e5417e4977d41c)
2021-12-10Core/Logging: Split logs for unknown and zero triggered spells (#23180)ForesterDev
* Core/Conditions: implement CONDITION_GAMEMASTER * Split logs for unknown and zero triggered spells * Update SpellAuraEffects.cpp * Update SpellAuraEffects.cpp * Update SpellAuraEffects.cpp * Update SpellEffects.cpp * Update SpellAuraEffects.cpp * Update SpellAuraEffects.cpp * Update SpellEffects.cpp * Update SpellEffects.cpp (cherry picked from commit 1f853480ee07d22fdbe9782d600423bbd4ef4abb)
2021-12-10Script/Quest: implement event for the quest Orabus the Helmsman (#23346)Wyrserth
* Script/Quest: implement event for the quest Orabus the Helmsman. Thanks Wyreth for the original script. * Fix coordinates that I inverted by mistake. * Rename 9999_99_99_99_world.sql to 2019_06_04_04_world.sql (cherry picked from commit b5e04c892084567ccbeacdb1500f0488f1eb48b8)
2021-12-10Spell/Script: Stasis FieldKillyana
Closes #23355 (cherry picked from commit 7dd87e3df44c1c5b9b8ffb9652911d46d6676c38)
2021-12-10Script/GunDrak: fix order for yell and altar texts on death for two bosses ↵Wyrserth
(#23357) (cherry picked from commit 65aea13c252b22003a41ff7f6fba7139b6681768)
2021-12-10Script/Creature: implement spell effect for the item Prototype Neural ↵Wyrserth
Needler used on Imprisoned Beryl Sorcerer (#23349) * Script/Creature: implement spell effect for the item Prototype Neural Needler used on Imprisoned Beryl Sorcerer. * Rename 9999_99_99_99_world.sql to 2019_06_03_02_world.sql (cherry picked from commit eb5d1d32485bc305e53d7a3229467050b02a1b0e)
2021-12-10Script/Creature: calculate Traveler's Tundra Mammoth's NPCs' exit position ↵Wyrserth
based on current player's position (#23344) * Script/Creature: calculate Traveler's Tundra Mammoth's NPCs' exit position based on current player's position. * Comment out unused argument. (cherry picked from commit d71a0608bfa93b0733489fc138431ec0918220af)
2021-12-10Core/SAI: add action_param3 to SMART_ACTION_REMOVEAURASFROMSPELL to allow it ↵Wyrserth
to remove only auras from spells that were cast by the entity itself. (#23345) (cherry picked from commit d365dd915715d4608ae69fa54f094ab65f02e984)
2021-12-10Core/BattlePets: Improvements when enabling battle pets (#27367)Meji
2021-12-10Core/Spells: Implemented SPELL_ATTR1_CAST_WHEN_LEARNEDShauren
2021-12-09Core/Map: Don't log errors about Area ID 0jackpoz
Restore a check about Area ID 0 that would silently ignore this case instead of spamming log errors. Check removed in e79c595b695ea5f35b8324efbb7741ccb102bce9 Fix #23085 (cherry picked from commit bda351d7f1cb3ff663a9d231afa85864ea0f8078)
2021-12-09Scripts/HallsOfLightning: Fix Volkhan spamming in chat when wiping at 10% healthjackpoz
Ref #23082 (cherry picked from commit 2d5387ea425fc4c31d664fcccad02c83a9f41aa0)
2021-12-09Core/Groups: do not allow lfg groups to change the loot mode (#23336)Ovah
While the UI does not allow changing the loot mode you can still trigger the opcode by running interface scripts which we will now block as well so nobody can ninja-loot anymore. (cherry picked from commit 49a9cbf20a483da006e45f2ff953583c75c689f0)
2021-12-09Core/Misc: Headers cleanupjackpoz
Use simple std::string concatenation instead of stringstream to avoid including <sstream> header. (cherry picked from commit 9c790e231ef00c29a33b037ac2ae28d526474539)
2021-12-09Core/Misc: Fix static analysis issuesGiacomo Pozzoni
Fix static analysis issues reported by Coverity Scan (cherry picked from commit e12398afdc0ffa878b31af1dbd98fb0c995cf020)
2021-12-09Scripts/Stratholme: Baron Rivendare rewrite (#22572)Nitair
* Adding last state of rivendare rewrite * Fix aura beeing removed on reset, fix death pact * Not needed * SQL: Changed remove/inset into update, fixed delete at conditions part * Typo * Remove link spell, fix blank lines, change magic numbers to enum * Test changes with SpellScript and DoCastSelf * Revert SpellScript and moved DoCastSelf for the aura into UpdateAI part * Damn, copyright. * Fix Unholy Aura * Fix again (does attack now / does cast if encounter resets) * Adding handling of the aura to the db * Rename 2018_99_99_99_world_335.sql to 2019_05_31_02_world_335.sql (cherry picked from commit ee5101fbf74b0fa924a8467ee766b39c1d06875b)
2021-12-09Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects ↵Wyrserth
while under the effect of a damage immunity aura (#23319) * Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura. * Forgot to change this in last-second rename. * Apply suggested changes, thanks Shauren! (cherry picked from commit 8bc5451864570c07eff6d427846335044f85a509)
2021-12-08Core/MovementGenerator: Add more details to assertsjackpoz
Implement GetDebugInfo in MovementGenerator, PathMovementBase, FlightPathMovementGenerator, WaypointMovementGenerator. Add an additional assert in FlightPathMovementGenerator::DoEventIfAny(), the input node must not be null (cherry picked from commit 9da81239596bf798b1beafc5ddeaeb37dcc330ff)
2021-12-08Core/Script: add script hook to allow overriding of a vehicle passenger's ↵Wyrserth
exit position (#23322) * Core/Script: add script hook to allow overriding of a vehicle passenger's exit position. * Allow to change orientation, and fix nopch. * Keep original orientation, thanks jackpoz! * Update Unit.cpp Code cleanup * Update Unit.cpp (cherry picked from commit 88c6c61b95ac2b2f911b519136770479d31de27d)
2021-12-08Core/Channel: Sanitize channel namesjackpoz
(cherry picked from commit 7b8f294c024230451f82ff67150e11fc31b61293)
2021-12-08Core/Channel: Fix CRT Debug Assert triggered with invalid channel namesjackpoz
(cherry picked from commit f0bd90cc35098475b20e736cf98885c99c04be3d)
2021-12-08Core/Movement: Fix assertion triggered in SplineChainMovementGeneratorGiacomo Pozzoni
Fix an assertion triggered in SplineChainMovementGenerator happening when a new generator is added while last spline of the SplineChainMovementGenerator is being processed but is not finalized yet. Fix #23077 (cherry picked from commit 5d7f0eef6e2f89d5dbeb0a702f7a35c95626240e)
2021-12-08Core/Players: out of range group updates will now get sent every 5 seconds ↵Ovah
instead of as soon as they are available to reflect retail behaivior. (#23323) * according to sniffs the group update packet for out of range members has a fixed 5 seconds interval instead of spaming packets like crazy for example when updating positions. On 4.x and above this will fix a very nasty and ugly fps drop * validated with 4.3.4 and 3.3.5 sniffs (cherry picked from commit 635cefc67e25c4318d67bf557b66958081c02ac4)
2021-12-08Creature/Script: npc_tallhorn_staglactoseti
Ref #2623 (cherry picked from commit bfffa5d45e9d07636930e89916986edf7c086c1e)
2021-12-08Core/Console: start CliRunnable thread after all log messages have been ↵Wyrserth
printed. (#23321) (cherry picked from commit d8ce37e0c90a3da2d42a09d33523e4403aab2723)
2021-12-08Core/GameObjects: goober gameobjects may reset only if they have a lock id ↵Ovah
or a reset time specified (#23298) * Core/GameObjects: goober gameobjects may reset only if they have a lock id Tests have shown that Goobers without a lock id (Data0=0) are not allowed to reset their go state such as the teleporters in Ulduar and Icecrown Citadel. The tests has been expanded by checking 4.x goobers as well and the perfect example that confirms that result is the Ancient Bell for Atramedes' intro which also is not suposed to reset after using it. * Core/GameObjects: allow to reset goobers without a lock id if a reset time is defined * fixed a typo (cherry picked from commit a70845c93de0902c4c6fa55ff10293f7e3679ac5)
2021-12-08Core/SmartAI: Improve SMART_EVENT_GOSSIP_HELLOjackpoz
Add another value to event_param1 for SMART_EVENT_GOSSIP_HELLO to support all cases of OnGossipHello/OnReportUse in GameObjects: - event_param1 set to 0: execute the action for both OnGossipHello and OnReportUse. This might result in the action being executed twice when clicking the GameObject - event_param1 set to 1: execute the action for only OnGossipHello - event_param1 set to 2: execute the action for only OnReportUse (cherry picked from commit 9e58ef6940c78d92f1553cf7ab75e87a6e2cf112)
2021-12-08Core/Weather: Define WEATHER_STATE_DRIZZLE stateKittnz
(cherry picked from commit cf05c3dd2c8fd27e0cb7a7e76913ba46cbee0a2c)
2021-12-08DB/Creature: Hydross the unstable npc triggersKillyana
Update the correct channel spell SPELL_BLUE_BEAM and spawn triggers used to cast it (cherry picked from commit 2829f5fb9ce4d61ae6e88cf65ed7302985e5cf36)
2021-12-08DB/Creature: Dark Portal Dummy 1.30Killyana
(cherry picked from commit fdec429f189ac88381b1ba9f8d83ef5f4f9e0017)
2021-12-08Core/Misc: Exclude boost 1.78 and newer from ↵Shauren
boost_1_73_process_windows_nopch hack
2021-12-08Core/AreaTriggers: Added helper static function ↵Shauren
AreaTrigger::CreateNewMovementForceId for use in scripts with movement forces
2021-12-08Core/Movement: Defined movement force type enumShauren
2021-12-07Core/Misc: Add helper table phase_name and improve .npc info and .gpsfunjoker
.gps and .npc info now displays names for known phase names
2021-12-07Core/Spells: Fix spells with Health Leech effect, now check damage absorb ↵Gildor
when calculate Heal (#23312) Closes: #23311 (cherry picked from commit ad89472fe3512b4a5f4160240154fd5b11a3b07c)
2021-12-07Core/SmartAI: Implement SMART_EVENT_SUMMONED_UNIT and ↵jackpoz
SMART_EVENT_SUMMON_DESPAWNED for GameObject owners (cherry picked from commit 507a56d62764f63113d35dfcca9273b8d0b16cc5)
2021-12-073.3.5 gameobject summoner (#23289)Giacomo Pozzoni
* Scripts/Misc: Change IsSummonedBy(Unit*) to IsSummonedBy(WorldObject*) * Scripts/Misc: Fix build * Core/TempSummons: Rename GetSummoner() to GetSummonerUnit() * Core/TempSummons: Add support to TempSummons::GetSummoner() to return GameObject too * Fix build * Core/TempSummons: Allow GameObject to be owner of TempSummon * Core/TempSummons: Add support to SAI for GameObject owner of TempSummon * Scripts/Misc: Fix no-pch build * Core/TempSummons: Implement PR comments (cherry picked from commit 797fba98e95da1236465a15061ec4122d7ec33fe)
2021-12-06Core/SmartAI: Fix SMART_EVENT_SUMMON_DESPAWNEDjackpoz
Fix SMART_EVENT_SUMMON_DESPAWNED not working when event_param1 was set to any value other than 0 (cherry picked from commit 457fc224733cc78cedc5e956442a9f5d7bd2f049)
2021-12-06Core/GameObjects: Validate rotation quaternion at startupShauren
Ref #23306 (cherry picked from commit 9dbedb6b644860020e5abd369fb59c63f49727b8)
2021-12-06Core/Misc: Fixed dynamic buildShauren
2021-12-05Core/PetAI: apply some movement related correctionsccrs
Unit::StopMoving() is evil, and so is MotionMaster::Clear() the first can really mess up existing movement generators the second can interrupt "controlled" movements... can do it literally mid-air (cherry picked from commit e4a1556e09ea38ece9a76b0d190d2b2f29bf5bb9)
2021-12-05Core/Handlers: apply some movement related correctionsccrs
Unit::StopMoving() is evil, and so is MotionMaster::Clear() the first can really mess up existing movement generators the second can interrupt "controlled" movements... can do it literally mid-air (cherry picked from commit c826ec0a3c17f86f8a3e44455c533fb46f239720)
2021-12-05Core/Handlers: random PetHandler cosmetics & codestyleccrs
(cherry picked from commit 48208b8dde9fe69131f44bc49a52d8bff90db9ef)
2021-12-05Core/Movement: move DelayedAction into MotionMaster and add a couple definesccrs
(cherry picked from commit 2b78c70810cba22492b2586c6d79a90849d74ff9)
2021-12-05Core/Misc: Fix static analysis issues reported by Coverityjackpoz
(cherry picked from commit a0bd68cf465517786d16bcb145ed3fc8bc5b5b98)
2021-12-05Spell/Scripts: Add cooldown for Arcano-Scorp spellsKillyana
Closes #23287 (cherry picked from commit a0d41c314fcce2b7e941628b3b9b1710cc6acee8)
2021-12-05Core/Spell: add proper cooldowns to some spells used by vehicles (#23260)Wyrserth
* Core/Spell: add proper cooldowns to some spells used by vehicles, thanks to jackpoz and sirikfoll. * Add Wing Buffet and Stampy's Stompy-Stomp. * Add Tag Greater Felfire Diemetradon and Touch of Darkness. * Rename 9999_99_99_99_world.sql to 2019_05_17_00_world.sql (cherry picked from commit 4d04344b414adc965bd2760d3f30338bcce70431)