Commit Graph

19426 Commits

Author SHA1 Message Date
Antonio Martín Berti b5a67cf17d Core/Conditions: Implemented new condition type CONDITION_BATTLE_PET_COUNT to check how many copies of a battle pet are collected (#27689)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-02-06 18:57:19 +01:00
Teleqraph 3fa4c04919 Scripts/Spells: Implemented Ashen Hallow script (#27682) 2022-02-06 16:19:25 +01:00
Aqua Deus e5417e9ce7 Core/PacketIO: Implemented SMSG_DISPLAY_TOAST for quest money rewards (#27669) 2022-02-06 14:56:11 +01:00
Shauren 873e92d3b4 Core/DataStores: Fixed LiquidTypeEntry structure broken by incorrect regex replacement 2022-02-06 11:23:08 +01:00
Treeston 2aa9d9a67a Scripts/Commands: Correct some unexpected behavior in .level
(cherry picked from commit d2f51569d1)
2022-02-06 01:15:37 +01:00
Ovah f70161dcc5 Core/Spells: fix a possible crash when a target that has been focused during spell casts disappears
(cherry picked from commit 0d152e932c)
2022-02-06 00:36:00 +01:00
Ovah c295cb9814 Core/Spells: cleaned up and improved spell focusing behavior (PR #25440)
(cherry picked from commit 39a436bd65)
2022-02-06 00:29:15 +01:00
ForesterDev 51622e6642 Scripts/ICC: update Deathbringer Saurfang scripts to new model (#25435)
(cherry picked from commit d52acf1b72)
2022-02-06 00:22:36 +01:00
Giacomo Pozzoni 6734a70aa8 Core/Warden: Attempt to fix random ingame Lua errors with Warden enabled
(cherry picked from commit cd1858b040)
2022-02-06 00:18:17 +01:00
jackpoz 8cbc21120f Core/Characters: Replace 2 database statements with 1
Replace DELETE + INSERT with REPLACE when updating realmcharacters table

(cherry picked from commit a33ff74d92)
2022-02-06 00:15:31 +01:00
jackpoz a439dab179 Core/PlayerDump: Update realmcharacters table when importing a character with ".pdump load"
Fixes #24517

(cherry picked from commit 69831d2a97)
2022-02-06 00:15:08 +01:00
Shauren 111a80bbbf Scripts/Trial of the Champion: "Refactor" encounter state management to use InstanceScript::Get/SetBossState so people attempting to fix this instance don't feel compelled to change EVERY SINGLE BOSS FILE when fixing one of them
(cherry picked from commit d704b89163)
2022-02-06 00:14:57 +01:00
Keader c42470ffb7 Core/Spells: Do not reset periodic timer for stacking DoTs on recast
(cherry picked from commit d7a78c1930)
2022-02-06 00:10:56 +01:00
Treeston 6ede274024 Core/ChatCommands: Fix an issue that caused trailing variant options to sometimes not be selected
(cherry picked from commit 14fa6c3a72)
2022-02-06 00:07:47 +01:00
jackpoz d1bea3e8b3 Core/LFG: Handle vote kick as failed if there cannot be 3 votes agreeing
i.e: 4 players, vote kick starts, 1 rejects, vote is considered as failed.

(cherry picked from commit f0f0de01fa)
2022-02-06 00:05:38 +01:00
offl 2b515f97a6 DB/Quest: Convert & update support for 'A Slow Death' to SAI
Closes #25399

Based on dr-j's script

(cherry picked from commit 29b39ae606)
2022-02-06 00:05:16 +01:00
offl 7090fe5c18 DB/Quest: Convert & update support for 'Escape from Firewing Point!' to SAI
Closes #25358

Based on dr-j's script

(cherry picked from commit 2ff8da2acd)
2022-02-05 23:48:27 +01:00
offl 196ff25a6b DB/Quest: Convert & update support for 'The Caverns of Time' to SAI
(cherry picked from commit d89c84263d)
2022-02-05 23:46:43 +01:00
offl bb468708e6 DB/Quest: Convert & update Homing Robot chickens to SAI
Closes #25239

(cherry picked from commit 8c303e4f97)
2022-02-05 23:45:58 +01:00
Treeston 378691aaa2 [3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)
(cherry picked from commit 75f9e7396e)
2022-02-05 23:42:15 +01:00
Treeston 7d0586812a Core/Misc: Fix some static analysis warnings exposed after 6b8f3d0.
(cherry picked from commit 59be657ca2)
2022-02-05 23:05:14 +01:00
jackpoz 0441f3ea5e Core/LFG: Restore ".lfg queue" command argument handling
(cherry picked from commit a46c835ed1)
2022-02-05 22:59:46 +01:00
ForesterDev 97a5c29e8a Scripts/ICC: update Deathbringer Lord Marrowgar scripts to new model (#25436)
(cherry picked from commit 1c41c5285a)
2022-02-05 22:58:23 +01:00
ForesterDev 8422442ed0 Scripts/ICC: update Blood Queen Lana'thel scripts to new model (#25434)
(cherry picked from commit def58965e8)
2022-02-05 22:56:12 +01:00
Rushor dfeb8c267f Game/AI: Implement option to move a creature back to Homeposition on Evade. (#24492)
* Game/AI: Implement option to move a creature back to Homeposition on Evade.

* If ToHomePosition (action param 1) is 1 > Move to last stored position
* If ToHomePosition (action param 1) is 0 > Move to homeposition
* Ref: https://github.com/TrinityCore/TrinityCore/issues/24226

* Add parameter for walkmode

* Game/AI: SAI SMART_ACTION_EVADE - Rename ToHomePosition to ToRespawnPosition and store point from GetRespawnPosition.

* Game/AI: SAI SMART_ACTION_EVADE - Rename ToHomePosition to ToRespawnPosition

* Remove broken bits, simplify the code

* Update comments

* Code cleanup

Co-authored-by: jackpoz <giacomopoz@gmail.com>
(cherry picked from commit 02fca032e1)
2022-02-05 22:51:52 +01:00
Maks Szokalski bc04acb726 Add "On" to some gossip methods in AI (#25415)
* Add "On" to some methods

* Update npc_innkeeper.cpp

* Update zone_borean_tundra.cpp

(cherry picked from commit 41188eb535)
2022-02-05 22:18:19 +01:00
Treeston 013c9b2cb7 Core/ChatCommands: make ExactSequence more readable
(cherry picked from commit feaaa595ca)
2022-02-05 21:29:53 +01:00
Peter Keresztes Schmidt bdd4ccbd78 Core/ChatCommands: Drop PlayerIdentifier's cast operators which could return nullptr (PR #25431)
(cherry picked from commit 8985fc4046)
2022-02-05 21:25:23 +01:00
Peter Keresztes Schmidt fd41de7ce3 Scripts/Commands: Convert argument parsing of lfg commands to new system (PR #25430)
(cherry picked from commit 0769d77269)
2022-02-05 20:59:38 +01:00
Peter Keresztes Schmidt 26f3c25dae Scripts/Commands: Convert remaining debug commands (PR #25429)
(cherry picked from commit 062c55f1ab)
2022-02-05 20:50:33 +01:00
Treeston 54fc62db52 Core/Misc: Convert leftover DatabaseTransactions-by-reference (pass them by value!)
(cherry picked from commit 6b8f3d0f94)
2022-02-05 19:56:31 +01:00
Treeston b6635be041 [3.3.5] Core/Guilds: Guild cleanup (PR #25422)
(cherry picked from commit cd28423a4e)
2022-02-05 19:20:18 +01:00
Treeston 42be7836df Chat/Commands: Eradicate ChatHandler::extractOptFirstArg
(cherry picked from commit 4f636b80e4)
2022-02-05 16:21:54 +01:00
Maks Szokalski eca1e6e9cb Core/AI: CombatAI refactor (PR #25416)
(cherry picked from commit 99f9c26b2d)
2022-02-05 15:59:47 +01:00
Houston 0124284957 DB/Misc: Move & update some VoA scripts to SAI, add waypoints (#25419)
Co-authored-by: Houston <houston@gmail.com>
Co-authored-by: offl <11556157+offl@users.noreply.github.com>
(cherry picked from commit ca9c746767)
2022-02-05 15:57:54 +01:00
Houston edf511a551 Scripts/Icecrown: Small event of the down Nerub'ar Broodkeep (#25410)
Updates #25193
Co-authored-by: Keader
Co-authored-by: Ovahlord (sucker)

(cherry picked from commit f8db738e8d)
2022-02-05 15:50:46 +01:00
NoName ee620856ad Core/Movement: Corrected Animation Tier handling (PR #24875)
Co-authored-by: Warpten <vertozor@gmail.com>
Co-authored-by: Ovahlord <dreadkiller@gmx.de>
Co-authored-by: Carbenium <carbenium@outlook.com>
(cherry picked from commit dad187615d)
2022-02-05 15:40:31 +01:00
Treeston 358dc78e47 Scripts/AreaTrigger: Rename OnlyOnceAreaTriggerScript::_OnTrigger to TryHandleOnce, and make its return value useful.
(cherry picked from commit 0c7f6ac89f)
2022-02-05 14:53:54 +01:00
Keader 91f6163858 Core/MotionMaster: Do not generate path to MoveLand
(cherry picked from commit 141d3d2718)
2022-02-05 14:44:18 +01:00
Treeston 1e9d60b4ac Scripts/Commands: .character command conversion
(cherry picked from commit 00dd337b5d)
2022-02-05 14:44:01 +01:00
Peter Keresztes Schmidt cb2a284359 Core/ChatCommands: Move ostream operator into Variant class so we don't pollute std:: (PR #25413)
(cherry picked from commit 68a4085427)
2022-02-05 13:58:04 +01:00
Treeston 706163743d [3.3.5] Scripts/Commands: .arena command conversion (PR #25407)
(cherry picked from commit b63d655e20)
2022-02-05 13:57:50 +01:00
Giacomo Pozzoni ca498ffab2 Core/Maps: Always update the grid of player summons even if far away (#25406)
* Core/Maps: Always update the grid of player summons even if far away

* Code cleanup

* Use a vector instead of unordered_set

(cherry picked from commit c68faf108e)
2022-02-05 13:46:49 +01:00
jackpoz 2942d06664 Core/PathFinding: Enable pathfinding (MMaps) by default
(cherry picked from commit 5498f3be96)
2022-02-05 13:43:16 +01:00
Keader a3cc94080f Core/Spells: Implemented PROC_ATTR_CANT_PROC_FROM_ITEM_CAST
(cherry picked from commit 8a53e7e1c3)
2022-02-05 13:33:50 +01:00
Treeston 75e5c44638 Scripts/IcecrownCitadel: correct Rimefang's script name
(cherry picked from commit fc3feebee9)
2022-02-05 13:32:55 +01:00
Treeston fc094509e9 Core/Scripts: Remove now-unused WaypointPathStarted hook. WaypointStarted does everything it used to do, anyway. b3694bf follow-up.
(cherry picked from commit c9356190b7)
2022-02-05 13:31:50 +01:00
jackpoz c2d2df96db Core/SAI: Fix SMART_EVENT_WAYPOINT_START not being called at every waypoint checking wrong path id parameter
Remove multiple calls to SMART_EVENT_WAYPOINT_START for the 1st waypoint.
Closes #24760

(cherry picked from commit b3694bf47b)
2022-02-05 13:31:00 +01:00
Treeston e0e3bae82c Core/Authserver: Removal of sha_pass_hash, compatibility fields, and everything that uses them (PR #25156)
(cherry picked from commit bcdbdd6f23)
2022-02-05 13:29:21 +01:00
Treeston 970cd097de Core/Combat: When entering a vehicle, transfer any current threat to that vehicle. Closes #1340.
(cherry picked from commit 47c7910036)
2022-02-05 13:08:46 +01:00