Commit Graph

27393 Commits

Author SHA1 Message Date
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
Winfidonarleyan
9fe5a7297d Dep/fmt: update fmt library to 7.0.3
(cherry picked from commit 9d96e4852a)
2022-02-05 22:50:43 +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
Giacomo Pozzoni
b45277f1cf Core/Unit: Fix units on vehicles not dismounting on death (#25404)
* Core/Unit: Fix units on vehicles not dismounting on death

Closes #23095
Issue added in 982643cd96

* Remove leftovers from previous tries

(cherry picked from commit ff26027453)
2022-02-05 13:08:34 +01:00
jackpoz
341ef2c0dd Core/Arena: Fix Arena.ArenaStartPersonalRating setting not having effect if the player didn't do any arena match before next server restart
Ref #16609

(cherry picked from commit cc64762f06)
2022-02-05 13:08:08 +01:00
Shauren
04021a30ba Core/Players: Directly store PlayerSpell in m_spells, not as pointer
Closes #25402

(cherry picked from commit 1e446b021b)
2022-02-05 13:07:25 +01:00
jackpoz
ae6f8bc4f5 Core/SAI: Do not allow SMART_EVENT_RESET to call SMART_ACTION_CALL_SCRIPT_RESET
There might be cases where this should be allowed (i.e. if the SMART_TARGET_* is another object) but for now we'll just never allow it.

(cherry picked from commit 28921f191d)
2022-02-05 12:08:58 +01:00
jackpoz
d561a69122 Scripts/Obsidian Sanctum: Fix portals not being visible
Change NearestGameObjectEntryInObjectRangeCheck to allow returning GameObject not spawned.
Fixes other occurrences where a similar issue exists.

(cherry picked from commit ca2159bf40)
2022-02-05 12:04:35 +01:00
Giacomo Pozzoni
4dff5bd09b Core/SAI: Reduce the chance of infinite loops/stack overflows (#25398)
Fixes #24092

(cherry picked from commit a58aeb41f4)
2022-02-05 11:51:54 +01:00
Shauren
1a86bab4d8 Core/Misc: Allow all kinds of non-map containers in grid searchers
(cherry picked from commit a02d36f18c)
2022-02-05 11:51:10 +01:00
Shauren
a0edc1fb1b Scripts/Icecrown Citadel: Finish script registration refactoring - RegisterSpellScriptWithArgs
(cherry picked from commit 600a6b5f68)
2022-02-05 11:50:57 +01:00
Shauren
f3300899d8 Scripts/Icecrown Citadel: Fix scriptname conflict
(cherry picked from commit b63fa9c42f)
2022-02-05 11:42:54 +01:00
ForesterDev
2ac0960f3f Scripts/ICC: update Lich King scripts to new model (#25396)
* Scripts/ICC: update Lich King scripts to new model

* fix build

(cherry picked from commit d04bdd0316)
2022-02-05 11:42:35 +01:00
ForesterDev
d250640c6b Scripts/ICC: update Sindragosa scripts to new model (#25395)
(cherry picked from commit deec517239)
2022-02-05 11:24:09 +01:00
ForesterDev
ceec4ecf35 Scripts/ICC: update Professor Putricide scripts to new model (#25394)
* Scripts/ICC: update Professor Putricide scripts to new model

* fix build

(cherry picked from commit 0b0d5e9bea)
2022-02-05 11:10:39 +01:00
ForesterDev
1c22cd7d08 Scripts/ICC: update Lady Deathwhisper scripts to new model (#25393)
(cherry picked from commit aac3ae40f7)
2022-02-05 10:55:59 +01:00
ForesterDev
e294f94617 Scripts/ICC: update Rotface scripts to new model (#25392)
(cherry picked from commit af78f4ffb5)
2022-02-05 01:10:06 +01:00
ForesterDev
f03471c259 Scripts/ICC: update Festergut scripts to new model (#25391)
(cherry picked from commit 458867a2e1)
2022-02-05 01:04:31 +01:00
ForesterDev
2b4d353bff Scripts/ICC: update Valithria Dreamwalker scripts to new model (#25390)
(cherry picked from commit 71f33d5764)
2022-02-05 01:03:08 +01:00
ForesterDev
7241088faa Scripts/Icecrown Citadel: update Blood Council scripts to new model (#25389)
(cherry picked from commit aedb8b80f3)
2022-02-05 00:58:05 +01:00