Shauren
9a0a56dc88
Misc: Adjust max line length in editorconfig to something that better fits 1080p screens
2022-01-30 14:14:40 +01:00
Shauren
78283e3ef2
Scripts/Spells: Fixed Holy Shock visuals
2022-01-30 12:55:57 +01:00
Shauren
2cc652b305
Core/Scripts: Expose IsCrit to hit hooks for spell scripts
2022-01-30 12:36:29 +01:00
Shauren
ea82454932
Core/Guilds: Fixed loading of guild member logout time
...
Closes #27690
2022-01-30 11:57:19 +01:00
Shauren
faf12a8883
Core/Objects: Don't consider SMSG_UPDATE_OBJECT packets that contain only destroyed objects as empty
2022-01-29 20:35:25 +01:00
Shauren
7044204130
Core/Objects: Cleanup SmoothPhasing code - move to separate files and better integrate it with visibility system
2022-01-29 20:35:25 +01:00
Shauren
5a82a0381d
Core/Objects: Properly choose between "Destroyed" or "OutOfRange" during visibility update
2022-01-29 16:01:57 +01:00
Shauren
472384e757
Core/Objects: Add overridable function UpdateObjectVisibilityOnDestroy
2022-01-29 15:18:27 +01:00
Shauren
2864efdc53
Build: Disable Visual Studio 2022 MSBuild resource manager to make compile take only as much time as it does in Visual Studio 2019
2022-01-28 12:52:05 +01:00
Shauren
4fbf6dacff
Core/Spells: Exclude empty mods from affecting spells and ignore PointsIndexX mods for spells that don't have any effect at that index
2022-01-28 11:19:48 +01:00
Shauren
7fa2fa2f5e
DB/Gossip: Restore gossip_menu_option Box* values that were wrongly set by 88659dcebf
2022-01-27 22:43:36 +01:00
Shauren
d0bfca5a73
SQL: Fix 2022_01_26_45_world.sql for mysql 5.7
2022-01-27 11:13:04 +01:00
Shauren
88659dcebf
Core/Gossip: Sync naming and db structure with 3.3.5
2022-01-26 23:49:42 +01:00
Shauren
b87f56d070
Core/Quests: Sync comments/log with 3.3.5
2022-01-26 20:46:42 +01:00
Shauren
fbcf269207
Core/CrashHandler: Skip logging stack trace of the thread writing the crash log, it was launched by windows with same context as crashing thread
...
(cherry picked from commit dd34651f4d42ca598b2f1b2ed32e27b4742f4be7)
2022-01-26 18:47:44 +01:00
Shauren
cc0affa523
Core/CrashHandler: Remove logging function variation depending on crash reason and print directly to file, not to temporary buffer
...
(cherry picked from commit c5e1b49e8c02386a0e9edf682692dc6d46cc862f)
2022-01-26 18:47:16 +01:00
Shauren
259bbf1e04
Core/CrashHandler: NULL -> nullptr
...
(cherry picked from commit 68fdfcaa507d06ce8e823e7848f4c58ef1e62732)
2022-01-26 18:46:56 +01:00
Shauren
473f3db0ab
Core/CrashHandler: #ifdef cleanup to make VS not choke when parsing, fixed file being all red in editor
...
(cherry picked from commit 39c5e03b749d44df346b8f37aed3eb898526365a)
2022-01-26 18:46:43 +01:00
Shauren
7893ac94a0
Core/CrashHandler: Attempt to extract C++ exception object in uncaught exception hander
...
(cherry picked from commit 83ed35fe62c16f5697f253a9a44bba7dcb83e80d)
2022-01-26 18:43:31 +01:00
Shauren
41fe9a84d4
Build: Enable /permissive- flag on msvc
...
(cherry picked from commit c8fed48b161cfff5fa90d8bf4342ede88086ada4)
2022-01-26 14:20:47 +01:00
Shauren
58d199db48
Core/Misc: Fix compile errors found with msvc /permissive-
...
(cherry picked from commit b3db50a3b41b2db209327387f59afa1c40532773)
2022-01-26 14:20:13 +01:00
Shauren
0d46fad573
DB/Creature: Remove loot from creatures with CREATURE_DIFFICULTYFLAGS_NO_LOOT
2022-01-26 00:20:35 +01:00
Shauren
d5dcf02196
Core/DBLayer: Add nicer api for SQLQueryHolders
...
(cherry picked from commit 9b806c6b5d9e83f8614523317a44742954f97744)
2022-01-24 21:21:37 +01:00
Shauren
f39e61078f
CI/CircleCI: Fix invalid merge conflict resolution
2022-01-24 16:47:44 +01:00
Shauren
6d9a084036
Core/Commands: Initialize commands on startup instead of first use
...
(cherry picked from commit 0fc7b50c041131b3d6dbc011f29d6547c9ca0660)
2022-01-24 14:46:14 +01:00
Shauren
a9b4f9aca0
Core/Mail: Load mails at login instead of on demand when queried by packets (logging in always sends one of the packets that cause mail loading anyway)
...
(cherry picked from commit 57eaab80d9e1f6f25274f376da16e1f2f67ab4bc)
2022-01-24 14:45:54 +01:00
Shauren
54a6e603ff
Core/Misc: Replace database query in WorldSession::HandleAddFriendOpcode with async version
...
(cherry picked from commit 2f0893d279ddab86ae7c3e4fd1d7a47b15e938f7)
2022-01-24 13:38:40 +01:00
Shauren
d2cde75ab2
Core/Networking: Fixed authserver socket read handlers being called on incorrect thread
...
(cherry picked from commit 3ad05386c844438af0dda56bbb46fa665d870c5c)
2022-01-24 13:15:13 +01:00
Shauren
c7899c1e76
Core/WorldObject: std::chrono-ify SummonPersonalClone
2022-01-24 12:57:40 +01:00
Shauren
cacdb57c9c
Core/Crypto: c++17-ify crypto code cherry picked earlier that was downgraded to c++14
2022-01-23 23:49:34 +01:00
Shauren
cd0b301779
Nopch fix
...
(cherry picked from commit c0ade2e98fbc6cc129b4725d2216016f90996e8b)
2022-01-23 20:40:34 +01:00
Shauren
2b312c7bd2
Dep: Switch to boost process instead of old standalone version
...
(cherry picked from commit 524d16739861d0b2279e2270e319b0c77ec9b03b)
2022-01-23 20:39:15 +01:00
Shauren
596bf2b772
Core/Misc: Replace boost::optional with std::optional part 2
2022-01-23 20:31:52 +01:00
Shauren
15d59640fa
Scripts/World: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
8417c7d815
Scripts/Zul'aman: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
5a53fa4b58
Scripts/Blackrock Spire: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
1ef00ccd10
Scripts/Stonecore: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
f0a7bc5267
Scripts/Halls of Origination: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
66641b6d22
Scripts/Blackrock Caverns: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
d07425e620
Scripts/Firelands: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
bb29fb406e
Scripts/Baradin Hold: Use std::chrono::duration overloads of EventMap
2022-01-23 16:39:31 +01:00
Shauren
e0256154b6
Scripts/Mana Tombs: Fix Pandemonious Dark Shell event delay
...
(cherry picked from commit 7e5cf40d4c776bc048f74b8323c435173394772f)
2022-01-23 15:47:38 +01:00
Shauren
b6a3774a38
Warning fix
2022-01-23 15:18:10 +01:00
Shauren
a55801e35e
Correct g3d patch naming conflicts with 3.3.5 branch
2022-01-23 00:34:44 +01:00
Shauren
aed8e1c3b4
Fixed -Wdeprecated-copy warning in G3D
...
(cherry picked from commit a650bd631a4681d09e3ff66f79b73b99299565f3)
2022-01-23 00:19:57 +01:00
Shauren
d4568a90b1
Fix warnings related to Vector3::operator= and remove -Wno-deprecated-copy suppression
...
(cherry picked from commit 042b1abfd747160085e5acc24a842a076b20ea01)
2022-01-23 00:18:39 +01:00
Shauren
d32dd913fd
Core/Units: Fixed typo in unit flag name
2022-01-22 14:45:03 +01:00
Shauren
b4952db464
Core/Units: Named unit flags linked to CreatureDifficulty flags
2022-01-22 13:21:15 +01:00
Shauren
e8368ed2eb
Core: Updated allowed build to 9.1.5.42010
2022-01-22 01:40:57 +01:00
Shauren
6ce56e8137
Core/DBLayer: Fixed false positive msvc analysis warning
2022-01-22 01:11:16 +01:00
Shauren
0ac5b1da8c
Core/Spells: Don't select corpses for spell targets that expect to hit units
...
Closes #24980
(cherry picked from commit 14db2215d37c8081aff32a22b0e40b1cb8d6ec96)
2022-01-22 00:33:53 +01:00
Shauren
a0e5f9db7e
Core/Misc: Fixed engrish in static_assert for EnumFlag and restrict DEFINE_ENUM_FLAG to enums only (with std::is_enum)
2022-01-21 22:19:57 +01:00
Shauren
73b4b1733a
Build: Enable some msvc warnings that are enabled for other compilers
2022-01-21 13:43:19 +01:00
Shauren
96137fb30f
Core/Misc: Future msvc warning fixes
2022-01-21 13:40:48 +01:00
Shauren
a270005de1
Core/SAI: Support SMART_TARGET_POSITION in SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
2022-01-19 19:20:56 +01:00
Shauren
279744efcd
Core/Commands: Fixed wrong field being used to determine instance type in .lookup map id
2022-01-19 12:37:27 +01:00
Shauren
18cc0b2e4a
Core/Quests: Fixed quest select query
2022-01-19 10:40:10 +01:00
Shauren
f551e16e21
Fixed 2022_01_18_07_world_2020_06_26_06_world.sql with sql_mode=ONLY_FULL_GROUP_BY
2022-01-19 10:35:04 +01:00
Shauren
03dd82b52d
Scripts/Spells: Updated Power Word: Shield script
...
Closes #27630
2022-01-18 14:33:07 +01:00
Shauren
3346366b0e
Core/Auras: Fixed invalid iterator access in SPELL_AURA_TRIGGER_SPELL_ON_HEALTH_PCT implementation
2022-01-17 10:31:17 +01:00
Shauren
c0296ac131
Core/PacketIO: Allow more CMSG_SET_ACTION_BAR_TOGGLES before triggering AntiDOS protection
...
Closes #27619
2022-01-16 19:45:16 +01:00
Shauren
bf357312e0
Core/Conditions: Implemented many more UnitCondition types
2022-01-15 23:30:00 +01:00
Shauren
bff5ae51fe
Core/Spells: Fixed crash in spell visual selection when CasterUnitConditionID is set
2022-01-15 19:16:20 +01:00
Shauren
72286dc5e4
Core/Conditions: Initial support for UnitCondition.db2
2022-01-15 00:52:55 +01:00
Shauren
f2bde40922
Core/DataStores: Load UnitCondition.db2
2022-01-14 20:10:16 +01:00
Shauren
1989c68fb6
Core/Items: Change missed enchantment flag checks to use enum instead of raw number
2022-01-13 16:43:44 +01:00
Shauren
c5727921b9
Warning fix
2022-01-13 00:07:08 +01:00
Shauren
6ca301e863
Core/Phasing: Fixed stack overflow happening when modifying vehicle passenger phases (looping player->vehicle->passenger(player)->vehicle...)
...
Closes #27599
2022-01-12 15:09:36 +01:00
Shauren
6f8d6f5c9b
Core/Groups: Fixed crash in loot rolls happening when looted object despawns before roll expires
...
Closes #27600
2022-01-12 12:55:50 +01:00
Shauren
5889ab893e
Core/Units: Fixed crash happening when despawning summoned units whose owner is no longer in world
...
Closes #27598
2022-01-12 12:50:17 +01:00
Shauren
b4b58c563b
Core/Spells: Fixed typo in loading serverside spells
2022-01-11 21:08:22 +01:00
Shauren
bf6b3aaed6
Core/Auras: Fixed sending EstimatedPoints for auras that have only some effects that use it
2022-01-11 19:21:51 +01:00
Shauren
415aaae7f2
Core/Spells: Validate spell_proc.AttributesMask on startup
2022-01-11 19:05:35 +01:00
Shauren and aquadeus
0d3235f569
Core/Guilds: Separate guild rank id from guild rank order
...
Co-authored-by: aquadeus <[email protected] >
2022-01-09 23:12:00 +01:00
Shauren
241193cd02
Core/Items: Implemented many new enchantment flags
2022-01-09 16:31:12 +01:00
Shauren
6df3cb0995
Scripts/Spells: Corrected script registrations for shaman spells to match db2 data
2022-01-09 14:59:35 +01:00
Shauren
b042919daf
Scripts/Spells: Updated Windfury Weapon script
2022-01-09 14:42:55 +01:00
Shauren
5f0f9e6875
Core/Spells: Added Spell const* constructor overload to CastSpellExtraArgs
2022-01-09 14:42:35 +01:00
Shauren
60539d2e24
Scripts/Spells: Changed shaman Healing Stream Totem target selection to use Trinity::SelectRandomInjuredTargets
2022-01-09 13:44:43 +01:00
Shauren
4d3439b024
Scripts/Spells: Fixed shaman Healing Rain target limit
2022-01-09 13:43:45 +01:00
Shauren
30f232d5db
Scripts/Spells: Fixed shaman Healing Rain not doing anything
2022-01-09 12:45:32 +01:00
Shauren
56c43a5fa9
DB: Add many new WDB templates
2022-01-08 21:19:25 +01:00
Shauren
bd60df2ce0
Scripts/Spells: Fixed mage talent Chrono Shift
...
Closes #19575
2022-01-07 22:46:00 +01:00
Shauren
26bdbde467
Core/DataStores: Fixed a crash in db2 loader happening when trying to load additional localized strings from a db2 file newer than db2 for default worldserver locale
2022-01-07 21:22:51 +01:00
Shauren
c5d3bd2cdd
Core/Battlefield: Fixed startup crash when compiled without scripts
...
(cherry picked from commit 1405760f317cfcfed29aca5ab36633863a2d9dc9)
2022-01-07 00:31:38 +01:00
Shauren
a26cc135fa
Entities/WorldObject: Move IsInWorldPvpZone declaration to keep files similar to 3.3.5
2022-01-06 23:51:30 +01:00
Shauren
c776218cb5
Core/Misc: Properly close database connections when using --update-databases-only arg
...
(cherry picked from commit a9f9f737b2c93d8f9fcb435f7a2b164a84cbc684)
2022-01-06 23:35:09 +01:00
Shauren
1fc9e0172d
Core/Spells: Prevent manual cancelling of channelled spells that have SPELL_ATTR0_CANT_CANCEL
...
(cherry picked from commit dacb1e58025b69f61a965a78ffbe89c55a61e34b)
2022-01-06 20:48:29 +01:00
Shauren
865b47efad
Core/Networking: Switch to intrusive variant of MPSC queue to halve the number of memory allocations for packet sending ( #24659 )
...
(cherry picked from commit f0060496f9c8c4a21c28552a95928f2d05e031a9)
2022-01-06 19:38:12 +01:00
Shauren
0e586bb476
Core/Quests: Add missing GO_DYNFLAG_LO_ACTIVATE to lootable chests related to quests but not having quest loot
...
Closes #24474
(cherry picked from commit a26304478d9505713dfadb9b04a3bda4cef57545)
2022-01-06 00:31:29 +01:00
Shauren
b1a1e552d2
Core/Quests: Fixed gameobject sparkle state for lootable quest items by moving ItemAddedQuestCheck/ItemRemovedQuestCheck after item is added/removed
...
This is neccessary so that GameObject::BuildValuesUpdate from BuildValuesUpdateBlockForPlayer picks up correct inventory state and sets GO_DYNFLAG_LO_ACTIVATE
(cherry picked from commit 449bd9058bce87ade6831ba38d1a0b83b9cbfb18)
2022-01-06 00:30:02 +01:00
Shauren
1d0ca1106f
Tools/mmaps_generator: Made loading vmaps by mmaps_generator threadsafe
2022-01-04 20:44:22 +01:00
Shauren
98272944ee
Core/Commands: Fixed .npc add overwriting existing spawns when used on transports
...
(cherry picked from commit 75ab3619bdec058dcc848ad134c6d5e838e8f6fb)
2022-01-04 15:33:04 +01:00
Shauren
5e37b1cd5d
Scripts/Icecrown Citadel: Fixed Professor Putricide oozes not moving during their channel
...
(cherry picked from commit 1d43003cfa29cee2c7921fdeaa5c1714d085c770)
2022-01-04 15:33:04 +01:00
Shauren
c0f976d23d
Core/Spells: Added helper function to select random injured healing spell targets
2022-01-03 13:07:30 +01:00
Shauren
08b5a0586a
Core/Util: Added iterator range overload for Trinity::Containers::RandomShuffle
2022-01-03 12:48:40 +01:00
Shauren
3a67e37681
Core/Time: Remove artificially high minimal update intervals
2022-01-03 11:26:23 +01:00
Shauren
c981af6b31
Rename sql
2022-01-02 20:44:58 +01:00
Shauren
d30e4a20e5
Core/Misc: Define and use ChrRacesFlag and CreatureModelDataFlags (ref 772f506a3b426e27ee64b0506aed06219c8d7747)
2022-01-02 19:14:32 +01:00
Shauren
3a2eb806f8
Misc: Made gdb crash reporting script more automation friendly
...
* Don't block on successful exit
* Generate timestamped filenames to avoid overwriting old logs
(cherry picked from commit 58d3f17430bb0ab64c9da157bdbc842098d96370)
2022-01-02 16:32:47 +01:00