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 cc64762f068749bbee0ef96580614f5a8cdfc867)
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 1e446b021b704818fb4ef9bd8622716d138295b0)
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 28921f191de2269dd90b50ac99dd0d29ba90d0c4)
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 ca2159bf405fb96a8eba9f1e58bda7ee6c7eb247)
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 a58aeb41f466fd916cdc12e805f7a8130c8ccdf5)
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 a02d36f18c5846fc4306cb602851744cb352fc57)
2022-02-05 11:51:10 +01:00
Shauren
a0edc1fb1b
Scripts/Icecrown Citadel: Finish script registration refactoring - RegisterSpellScriptWithArgs
...
(cherry picked from commit 600a6b5f681c0f5864f9e9e37559965742e22ca9)
2022-02-05 11:50:57 +01:00
Shauren
f3300899d8
Scripts/Icecrown Citadel: Fix scriptname conflict
...
(cherry picked from commit b63fa9c42f26f3d80d9ace93654de0bac425f8cd)
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 d04bdd0316c5c158da4ec0461b714d04321e8f57)
2022-02-05 11:42:35 +01:00
ForesterDev
d250640c6b
Scripts/ICC: update Sindragosa scripts to new model ( #25395 )
...
(cherry picked from commit deec517239311f06ce4bfa62a930b1b874ef058a)
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 0b0d5e9beaf0cc2b7c94e0884a4269899c55691c)
2022-02-05 11:10:39 +01:00
ForesterDev
1c22cd7d08
Scripts/ICC: update Lady Deathwhisper scripts to new model ( #25393 )
...
(cherry picked from commit aac3ae40f772c65bf976ba68ad24f3643fb69dab)
2022-02-05 10:55:59 +01:00
ForesterDev
e294f94617
Scripts/ICC: update Rotface scripts to new model ( #25392 )
...
(cherry picked from commit af78f4ffb50fbff62a4321d7798a09abcabd4b40)
2022-02-05 01:10:06 +01:00
ForesterDev
f03471c259
Scripts/ICC: update Festergut scripts to new model ( #25391 )
...
(cherry picked from commit 458867a2e10d8e6c9a5d7c76b95441d2ab566d31)
2022-02-05 01:04:31 +01:00
ForesterDev
2b4d353bff
Scripts/ICC: update Valithria Dreamwalker scripts to new model ( #25390 )
...
(cherry picked from commit 71f33d5764b4bf8ce9a2f48aed951bbb65b9750e)
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 aedb8b80f3585e144fcf07e0e40920a2e2dbba55)
2022-02-05 00:58:05 +01:00
Treeston
4d62cc70d6
Scripts/Commands: Convert argument parsing of .npc commands
...
(And I snuck some chat command cleanup in there, more de-cluttering!)
(cherry picked from commit 88d446dadf65bf47c72d3042834281233b1174ac)
2022-02-05 00:43:55 +01:00
Treeston
6fded37e86
Scripts/Commands: Convert argument parsing of gameobject commands
...
(cherry picked from commit 35b3ba90b03143f2dc700cc4baeb88a58089c102)
2022-02-05 00:24:39 +01:00
Treeston
da8a66a05e
Common/Util: Trinity::StringTo<double> support (PR #25364 )
...
(cherry picked from commit f45aa5cac1579e87cbc599ffb58e10e662066792)
2022-02-04 23:50:25 +01:00
Treeston
0d54a5ecb4
Core/Misc: Add support for custom link colors. Clean-up hyperlink validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs.
...
(cherry picked from commit eaf8fa75a1c76131ecbf2585db6d6236b7334b8e)
2022-02-04 23:49:59 +01:00
robinsch
f7c65960a5
Core/Player: Fixed incorrect prepared statement parameter types in Player::_SaveBGData
...
Merges #25379
(cherry picked from commit 6e8284a8da0d80391cc0919c32b5ac664be18de2)
2022-02-04 23:46:43 +01:00
Houston
1f774873bf
Core/Totem: Immune to all positive spells. ( #25326 )
...
* Core/Totem: Immune to all positive spells.
* Fix tabs
* Avoid using magic numbers
* Remove whitespace
Co-authored-by: Moki <[email protected] >
(cherry picked from commit 8d0f52247fe6dbc51a6a41d0530f4409c5f9fbb3)
2022-02-04 23:41:43 +01:00
Treeston
c4b287c7bf
Core/Misc: DBC std::array refactors, and |Hachievement unit tests
...
(cherry picked from commit 3fbbe7cfbe1bc51db12bdc1ec7b21c16d1716366)
2022-02-04 23:37:29 +01:00
Treeston
c82b107b6b
UnitTests: Add a first set of item hyperlink tests
...
(cherry picked from commit 5394b2ef0f1c7b48e8886257b93698358abb575f)
2022-02-04 22:11:42 +01:00
Shauren
1a536365b5
Core/Chat: Add missing initialization to chat link data structures
2022-02-04 21:33:00 +01:00
Treeston
03fd9b038e
Core/Chat: Correct Hyperlink validation for incomplete achievements.
...
(cherry picked from commit fdcb1c8b2e142acc012f2ecb2ece082302e8fb15)
2022-02-04 21:27:25 +01:00
Treeston
a65e7e0213
Scripts/Commands: Fix a crash in .help - closes #25360
...
(cherry picked from commit 944f49d61355926e0d9e5c2d16eb4ad1af03d13c)
2022-02-04 21:21:40 +01:00
Treeston
45e9e94311
Core/ChatCommands: C++17 cleanup (again) (PR #25323 )
...
(cherry picked from commit 2f7d2ef3e979ecd0536f3a3713e56c8e59652a47)
2022-02-04 21:21:17 +01:00
Ovahlord
175fb7056b
Core/AI: SortByDistance will now sort the referenced list instead of a copy of it. This fixes MinDistance and MaxDistance target selection
...
(cherry picked from commit c08180d9bc7cb203746650a9b2fc775efbeb2540)
2022-02-04 13:05:36 +01:00
Shauren
7cd98cd7d2
Core/Config: Restore ability to load additional config files for custom scripts
...
(cherry picked from commit c1e4cfd07eee19069a15e9b82a308d8a914d5637)
2022-02-04 13:05:06 +01:00
Jinnaix
2e10a2de3b
Core/Misc: Update Worldserver.conf for AhBot Pricing -make things more clear ( #25341 )
...
* AhBot Pricing: Make things more clear
* Change default value to BuyPrice and add some more information to how two sided AH works
* Sync c++ configs with .conf ones
Co-authored-by: Giacomo Pozzoni <[email protected] >
(cherry picked from commit 812c2af4dae555b742ed318f0a93458115618356)
2022-02-04 13:01:25 +01:00
Giacomo Pozzoni
c66bcc4c0e
Core/Spell: Fix name clashing between local variables and class member fields ( #25352 )
...
(cherry picked from commit 8a48ece5732a47fc36fadc63d0620072ef47f8fe)
2022-02-04 13:00:08 +01:00
Jinnaix
6830d883ad
Core/Unit: send npcs home after fear runs out ( #25347 )
...
* Core/Unit: send npcs home after fear runs out
* Whoops, wrong
(cherry picked from commit 7e6f17a701cf8aaff092b17e544f1d13556913af)
2022-02-04 12:19:36 +01:00
jackpoz
4051ccd1bd
Core/AHBot: Warn about different AHBot behavior when AllowTwoSide.Interaction.Auction is enabled
...
Closes #18243
(cherry picked from commit 92f9abab0607609ff7e6b7434bab66cc809084ca)
2022-02-04 12:19:15 +01:00
Giacomo Pozzoni
99ee958e0a
Core/Misc: Fix issues reported by static analysis ( #25351 )
...
* Core/Misc: Fix issues reported by static analysis
* Core/Vmaps: Code cleanup after e777161888
(cherry picked from commit cfc8f7b442a9dba07b198fcebe2c02ab89cf0a8b)
2022-02-04 12:18:15 +01:00
Treeston
1303ca0e7e
Common/Utilities: Make StringTo<bool>'s signature match that of the other integral types, making for easier templating. Default behavior unchanged.
...
(cherry picked from commit f54cec4db7c67b623383c140159e1171876ace89)
2022-02-04 12:06:26 +01:00
Maks Szokalski
663ec92794
Scripts: Minor loop refactors ( #25325 )
...
(cherry picked from commit dc9e0c1e86efbabb52085b3977ec1258f4fbb986)
2022-02-04 12:06:01 +01:00
kvipka
5a20f14a99
Scripts/InstanceScript: Fix an issue where LoadAllGrids would load creatures before TeamInInstance was properly set (PR #25340 )
...
(cherry picked from commit 5d2780c43c36b0ae1cc4ac2694bf6ec464d079c7)
2022-02-04 12:05:36 +01:00
Shauren
bb185a78fb
Build: Put tests-extractor_common under correct folder when WITH_SOURCE_TREE is set to hierarchical-folders
2022-02-04 11:01:02 +01:00
Aokromes
af7c211230
Script/Azuremyst_isle: Remove useless log
...
(cherry picked from commit bf8b34946db51e27a25947316e2d4bb7a58a0e75)
2022-02-04 10:58:44 +01:00
Shauren
53563c24c3
Warning fix
2022-02-04 10:04:38 +01:00
Treeston
9f97fdd31a
Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327 )
...
(cherry picked from commit 534a2388b7c662c8796aabb1ec8cb424879799b6)
2022-02-04 00:27:14 +01:00
Treeston
6e45c371c4
Common/Utilities: Properly read std::from_chars documentation and check for out_of_range errors.
...
(cherry picked from commit 7478c2c65aea853a2086c9c7ecc56c14ad6ee338)
2022-02-04 00:27:14 +01:00
Treeston
be9dadc189
Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR #25335 )
...
(cherry picked from commit cd30e0b86ce6ee88386a91cebdf353fc55805c57)
2022-02-04 00:27:13 +01:00
Treeston
7b88fd607e
Core/Warden: Ensure Warden packets do not exceed 512 bytes. This should rectify random Warden timeouts.
...
(cherry picked from commit 7cc027401e4a2837872db54c835a4ed1a98e4a03)
2022-02-04 00:27:13 +01:00
Giacomo Pozzoni
902ed74c2a
Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT ( #25318 )
...
* Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT
* Require radius (5th parameter) to be set
(cherry picked from commit cbed1039c47f0e3487cea555bb8552a4e6445f5a)
2022-02-04 00:27:13 +01:00
Shauren
f7ed56f232
Core/Warden: Fix warden timeout ticking twice as fast as it should
...
(cherry picked from commit ec783fcbb59fcd6e657bc1a39c2b073fd7506ed4)
2022-02-04 00:27:12 +01:00
Peter Keresztes Schmidt
0257cdc8ca
Core/ChatCommands: Do not try to consume integral types if the token is empty (PR #25320 )
...
(cherry picked from commit 6079bc7f34250e65efa3dcbe5471382b217ebf24)
2022-02-04 00:27:12 +01:00
jackpoz
1f34964df4
Core/Movement: Fix RandomMovementGenerator for swimming creatures
...
Fix RandomMovementGenerator for swimming creatures not moving at all due to PATHFIND_FARFROMPOLY being handled as wrong path.
Fixes #25236
(cherry picked from commit 1aceb413495c18e5840112d6ada0c4c71cc03c7b)
2022-02-04 00:27:12 +01:00
Treeston
03b5c17863
Common/Utilities: Move EnumUtils' implementation struct from Trinity::Impl to Trinity::Impl::EnumUtilsImpl. This avoids confusing name clashes for other implementations in sub-namespaces of Trinity::Impl.
...
(cherry picked from commit 91744de3162bab23d7c5a0dd65fc8b4249eb803a)
2022-02-04 00:27:12 +01:00