aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-12-21Scripts/Kalimdor: Move script of Hand of Iruxos Crystal to database. (#24141)Rushor
* Scripts/Kalimdor: Move script of Hand of Iruxos Crystal to database. * Scripts/Kalimdor: Hand of Iruxos Crystal - Add despawn for gameobject. * Scripts/Kalimdor: Hand of Iruxos Crystal - Add despawn for gameobject. * Remove unneeded commentline * Rename 9999_99_99_99_world.sql to 2020_02_11_00_world.sql Co-authored-by: Aokromes <Aokromes@users.noreply.github.com> (cherry picked from commit a67dd6ab60cc3e25b4f59521face36156ed7b271)
2021-12-21DB/Text: Fix and remove some npc_textKillyana
(cherry picked from commit 7450be4cfd3f06ef3cac59ab0cd73e3af47f4857)
2021-12-21Core/Vehicles: implement vehicle seat addon table to specify seat ori… ↵Ovah
(#24112) * Core/Vehicles: implement vehicle seat addon table to specify seat orientation offsets and exit positions in form of offsets or absolute positions * converted Traveler's Tundra Mammoth to seat addon table data * first follow batch * whoopsie * Core/Vehicles: go from local copies to pointers * Update and rename 2020_99_99_99_world.sql to 2020_02_08_01_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 98d6c501d7c1a7a632c6ff8b1d46c7d0d4ae5b37)
2021-12-21Core/Scripting: fixed hourly bell sounds (#24127)schell244
* fixed hourly bell sounds * use switch and moved variable * fix typo (cherry picked from commit f87a4543ad886eb119a02f65ba4423fd4f208ec6)
2021-12-21Use boost::optional and boost::none instead of smelly pointer (#24134)Ujp8LfXBJ6wCPR
* Remove bad pointer usage from CharacterCache Use TrinityCore Option type instead which is intended for this purpose. (Wrapper around boost::option until C++17 bump is finalised) * Unify codestyle regarding TC optional type Based upon advice from @Shauren (cherry picked from commit 76831f1f467efe4aa26a38dc58c9eab2229bce71)
2021-12-21Core/Misc: Some refactoring, #23603 prep: (#23676)Treeston
- Split SpawnMetadata off from SpawnData - No longer allocate Creature/Gameobject objects in ObjectGridLoader just to check their typeid and delete them afterwards Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 9304e496cbf6ab6c028671fb8526c732ae5d799f)
2021-12-21Game/Battlegrounds: Fixed Position and Rotation of Alterac Valley GatesKeader
(cherry picked from commit ddd1a3c1efb05fbe7801cf63619f841916e648b6)
2021-12-21Scripts/Spells: Gift of the Harvester (#24111)Sorikoff
* Scripts/Spells: Gift of the Harvester * Scripts/Spells: nopch * Scripts/Spells: nopch * Scripts/Spells: validate * Rename 9999_99_99_99_world.sql to 2020_02_01_03_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit e10239311c95866f9316521b570f8600c08a2ff5)
2021-12-21Core/Movement: Fix WaypointMovementGenerator ignoring ↵Giacomo Pozzoni
EscortAI::SetEscortPaused() on Gossip Hello (#24005) Fix WaypointMovementGenerator ignoring EscortAI::SetEscortPaused() when talking to a NPC, scheduling a 3 minutes pause on the WaypointMovementGenerator even if it was already disabled with no timer, waiting for the player to select a gossip entry to resume the movement. (cherry picked from commit a9e534762f2517a37d595cdfef527ab55b6339ba)
2021-12-21Core/Items: implement some helper methods for easier readability (#24113)ForesterDev
(cherry picked from commit 573ddf4d22564d022e30807c5ba2c6eb1a2c8b2e)
2021-12-21Scripts/Borean Tundra: Iruk (#24117)Sorikoff
* Scripts/Borean Tundra: Iruk * Apply suggestions from code review Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com> * Update 9999_99_99_99_world.sql * Rename 9999_99_99_99_world.sql to 2020_02_01_01_world.sql Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 8c443ae39fe142491919e7cb50425163493d40ce)
2021-12-21Scripts/The Barrens: Beaten Corpse (#24124)Sorikoff
* Scripts/The Barrens: Beaten Corpse * Rename 9999_99_99_99_world.sql to 2020_02_01_00_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 74d19691a56355c5932913ee7e5553d5125b1126)
2021-12-21DB/Creature: Plagued Dragonflayer Tribesman & Plagued Dragonflayer ↵Killyana
Rune-Caster & Plagued Dragonflayer Handler Closes #24122 (cherry picked from commit c86d4404c8ae1961e15f36b294d505f067a272e9)
2021-12-20Core/Scripting: fixed build. Re-enable ModifyVehiclePassengerExitPos for ↵Ovah
CreatureScript to allow scripted creatures that already have an AI to benefit from its functionality as well (cherry picked from commit f0485cea394a84e93ebacc24f3535d5eb14a4053)
2021-12-20Core/AI: call ModifyVehiclePassengerExitPos for CreatureScripts since the ↵Ovah
hook is available for that class as well (cherry picked from commit ebf116e6a3381835fd2af885bd2721233485b684)
2021-12-20Spell/Script: Fix Prison chain for Unworty InitiateKillyana
Closes #24089 The spell 54613 is not used in the game (cherry picked from commit 0ec2a5fd745c7bd12e96f1870689ce52751b467a)
2021-12-20Scripts/Ebon Hold: How To Win Friends And Influence Enemies (#24090)Sorikoff
* Scripts/Ebon Hold: How To Win Friends And Influence Enemies * Scripts/Ebon Hold: Improve SQL! * Scripts/Ebon Hold: Final touch * Scripts/Ebon Hold: Actually final touch * Rename 9999_99_99_99_world.sql to 2020_01_26_04_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 13c81f55e3314fede78acfbb72a47384961d1f25)
2021-12-20Scripts/Borean Tundra: Plug the Sinkholes (#24085)Sorikoff
* Scripts/Borean Tundra: Plug the Sinkholes * Scripts/Borean Tundra: Improve SQL * Scripts/Borean Tundra: Remove item script * Rename 9999_99_99_99_world.sql to 2020_01_26_03_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 552a638e3110bedea1b2e80a7a4a2a71401d9c17)
2021-12-20Core/Movement: improved RandomMovementGenerator wait handling to get closer ↵Ovah
to retail behaivior (#24093) * according to observations Blizzard is letting creatures do 2 up to 10 spline movements right after each other before waiting for a couple seconds (cherry picked from commit 78c1216bcf60b9e376d9afd9484ff478bda641b1)
2021-12-20Core/Maps: cosmetic correction on comment (#24096)Kelno
(cherry picked from commit d0efd76c92084a896c87a7df5be5d879ac7f3eca)
2021-12-20Core/Movement: reset position update interrupt info after the interrupt ↵Ovahlord
checks have been executed * for discussion see: https://github.com/TrinityCore/TrinityCore/commit/02daf1bf3afc570c26e8e9f431866fcb3720174a#r36916229 (cherry picked from commit 01584cb0b9fe623fdf5694b985a53aa45f9f1d30)
2021-12-20Core/Movement: properly fix aura interrupts during movement (#24068)Ovah
We want our movement to be fully updated before even thinking about interrupting anything. The old logic was updating positions, interrupting stuff and afterwards updating movement generators. This way we were ending up with false interrupts. properly fixes #22908 (cherry picked from commit 02daf1bf3afc570c26e8e9f431866fcb3720174a)
2021-12-20Core/MMaps: Handle path on same positionjackpoz
Handle path on the same polygon between 2 very close positions as a normal path. (cherry picked from commit d293dd37822d93f9023d3ff9d39052ed976e236b)
2021-12-20Core/PathGenerator: Fix path generator returning shortcuts when start and ↵Giacomo Pozzoni
end are on the same polygon (#24083) * Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon Second try of handling paths on same poly in a better way than just building a shortcut * Fix movement generators using paths with start/end positions far from mmap polygons * Include flag PATHFIND_FARFROMPOLY even with a normal path if start or end were far away from mmap poly (cherry picked from commit 67d9d04d63cc74196059646b2e57f50a4a4fd2ca)
2021-12-20DB/Quest: Convert Reports from the Field to SAIKillyana
(cherry picked from commit c1580108f62257334cb4fecfffeea4e7a8296567)
2021-12-20Core/Gameobject: Rename GO_STATE_ACTIVE_ALTERNATIVE to GO_STATE_DESTROYED ↵NoName
(#24062) * Step 1: Rename GO_STATE_ACTIVE_ALTERNATIVE to GO_STATE_DESTROYED * Update src/server/shared/SharedDefines.h Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com> Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com> (cherry picked from commit 50d9d9196da90f7696cf83f07115df3d4880c879)
2021-12-20Scripts/Quests: Reports from the Field (#24075)Sorikoff
(cherry picked from commit bfac09bbcfa5d21da35ef6d51f190a618aab6cdc)
2021-12-20Scripts/Violet Stand: Warmages (#24084)Sorikoff
* Scripts/Violet Stand: Warmages * Rename 9999_99_99_99_world.sql to 2020_01_19_02_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 07c0bfe11b8164a9132e608e7bee1875467be6b2)
2021-12-20Scripts/Transitus Shield: Warmages (#24082)Sorikoff
* Scripts/Transitus Shield: Warmage * Scripts/Transitus Shield: SQL fix * Scripts/Transitus Shield: improve SQL * Rename 9999_99_99_99_world.sql to 2020_01_19_01_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit f20b147c71c69f196644ab250e5083e9e20eb6de)
2021-12-20Core/PathGenerator: Temporarily revert 29bf280e3496cf13c24ccb20e37da29d3bfa74d9jackpoz
Temporarily revert 29bf280e3496cf13c24ccb20e37da29d3bfa74d9 since our recast implementation always expects a path to have different polygons. A proper fix will be implemented later on, splitting a path with 1 single polygons in smaller steps in a similar way of how FindSmoothPath() works (cherry picked from commit 9f8477cd112bf0f52e23afc9cdee4adfcf540de5)
2021-12-20Scripts/Ulduar: Fix Ominous Clouds movementsjackpoz
Fix Ominous Clouds being only clockwise, now they move both clock and counter-clock wise. Add a workaround for GenericMovementGenerator not handling correctly cyclic splines started by MoveCirclePath(), stopping the movement after a single round. The workaround code can be removed once the bug in GenericMovementGenerator is fixed. (cherry picked from commit c1df161e1ddf95584030480d3dcb15149aacd7a6)
2021-12-20Core/Spells: SPELL_AURA_48 implementation (#24054)NoName
by xvwyh (cherry picked from commit b3b7f0761d5605d57f9d62ca8e22a8cd9a4df24b)
2021-12-20Spell: "Fierce Lightning Stike" must hit only one targetKillyana
(cherry picked from commit 89421422865b0d7743db22bb165bba0a3d8f2cfc)
2021-12-20Scripts: Fix rbac permission for skipping default boss sequencing checkShauren
(cherry picked from commit e660c8bc19198d9e2e912c5243498469f75b0ee6)
2021-12-20Fixed PvP Combat timer never getting refreshed (#24058)Kelno
* Fixed PvP Combat timer never gets refreshed while meleeing * Apply Treeston feedback Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 2b024e8fbff24b071217cd88f052fdeaa48b47ba)
2021-12-20Core/SAI: Fix SMART_ACTION_SET_MOVEMENT_SPEED behavior (#24059)Regigicas
(cherry picked from commit 13696204368ed933695bc0b738905f545dcbc836)
2021-12-20Scripts/Ulduar: Attempt to fix Yogg-Saron not evading on wipe (#24055)Giacomo Pozzoni
(cherry picked from commit 039534d1dbcde60b72c5b570be8e4cb5abb4f647)
2021-12-20Scripts/Spells: fix Turkey Timer duration (#24048)Alan Deutscher
* spell_gen_turkey_marker::OnPeriodic: Pop expired stack timestamps from tracking list. * Be a bit more explicit about the data type of removedCount. * Formatting nudge. * Remove brackets. (cherry picked from commit a0c07655eb6b42a2e1fd9319d53c7ed7f2c585d8)
2021-12-20Core/DynamicObjects: Restore the ability of DynamicObjects to be world ↵xvwyh
objects which was accidentally removed in f0f4a620fbeef9cc450d1294c1964fe98e45645d breaking Far Sight (#24046) Fixes #17081 (cherry picked from commit d4ba47a76e71a0ac103a1ff9b892593bc9c6a67a)
2021-12-20Scripts/ICC: include missing call from UnitAI::JustExitedCombat override in ↵ccrs
npc_green_dragon_combat_trigger (cherry picked from commit 330cbb55fb8597cd3adc09f15a753024b4c956cb)
2021-12-20Scripts/Icecrown Citadel: Removed unneccessary combat hacks from Valithria ↵Shauren
Dreamwalker (cherry picked from commit c188d4db8548544f089d53d944104e7d9ffdbb0e)
2021-12-20Quest/Scripts: Remove some hacks from "Trolls Is Gone Crazy!"Killyana
(cherry picked from commit a149261e94b676cf090b37d085578e08d0ebffd0)
2021-12-20Tools/mmaps_generator: Replace hardcoded map ids with db2 data checksShauren
2021-12-20Core/PathGenerator: Fix path generator returning shortcuts when start and ↵Giacomo Pozzoni
end are on the same polygon (#24036) * Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon Fix path generator returning shortcuts when start and end are on the same polygon by handling this case as if start and end were on 2 different polygons. This will ensure BuildPointPath() gets called which calls FindSmoothPath(), making sure each step is not longer than SMOOTH_PATH_STEP_SIZE (4 yards) * Change ingame cast error message to SPELL_FAILED_NOPATH from SPELL_FAILED_OUT_OF_RANGE if the generated path is too long (cherry picked from commit 29bf280e3496cf13c24ccb20e37da29d3bfa74d9)
2021-12-20Scripts/Blood Furnace: Fixed Broggok reset issues and some little improvementsKeader
Closes #23658 (cherry picked from commit 1bdc792559fbf4fa713fce40cdcf012e63fdc741)
2021-12-19Scripts/Misc: Fix build warningsGiacomo Pozzoni
(cherry picked from commit 37ffdc05b23f079af3e22d7042f6ffe240e69cd5)
2021-12-19DB/Spawns: Remove "Hand of the Deceiver" spawns as summoned by a scriptKillyana
(cherry picked from commit 434cdb1fa0f5d2ea282c044771b96c9b0ad17f53)
2021-12-19Creature/Script: Add text target for npc_shadowfang_prisonerKillyana
(cherry picked from commit 10ba39e62644c0d071013d50775790307de807c2)
2021-12-19Core/Phasing: Delete old and unused enumShauren
2021-12-19Core/Scripts: Add missing implementation for samePhase argument of ↵Shauren
ScriptedAI::ForceCombatStopForCreatureEntry