Commit Graph
100 Commits
Author SHA1 Message Date
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
Shaurenandaquadeus 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
Shauren d56d92fbe7 Core/Units: Allow mind controlling non-controllable vehicles (for example players that become vehicle during boss encounters or creatures that only are vehicles to show non standard power type)
Closes #24562

(cherry picked from commit 1fecbc6892b41bfe9d1e474d038c3b1f6e2dd125)
2022-01-02 16:17:18 +01:00
Shauren 65caf33e72 DB/Loot: Delete reference for Green Hills of Stranglethorn Pages 2022-01-02 12:20:02 +01:00
Shauren 6413466693 Core/Spells: Relaxed aura exclusivity check to allow casting spells that have other, non-aura effects even if aura will not be applied
Closes #24553

(cherry picked from commit 829cf38c67a70c1e0ec9886562e7ae7ae4fda17d)
2022-01-02 00:30:31 +01:00
Shauren 6d94bc2f4b Core/Spells: Fixed refreshing stat buff auras that have been improved by talents
Closes #24527

(cherry picked from commit 978745220a22a50a918a100c66819915ffe219e8)
2022-01-01 23:45:39 +01:00
Shauren 679e9910e0 Core/Auras: Prevent getting negative scale with auras
Closes #24040

(cherry picked from commit 50576fa1f5044ca81baf633d84174cef2346acc5)
2022-01-01 22:49:58 +01:00
Shauren c9443f190a Core/Spells Fixed scroll stacking check when not targeting self
* Reuse code that removes non-stackable auras at apply to check before casting the spell to keep reagents/cast item

(cherry picked from commit 43d9ffd1bc127768882711a47d5e2bae92845d04)
2022-01-01 22:27:05 +01:00
Shauren fbedd77fe5 Misc: Improve gdb script output
* Switch disassembly to intel syntax
* Remove terminal colors
* Remove terminal line wrapping and pagination
* Start versioning the script

(cherry picked from commit 0d0d005a2e705b875bf4b13cee910521e37b45bc)
2022-01-01 20:12:36 +01:00
Shauren 3f2f715f35 Core/Misc: Improve assert message with more detail
(cherry picked from commit 9407f9bdfa7c8f3cad52f892aef4e31a1781930a)
2022-01-01 20:10:45 +01:00
Shauren 2f17038373 Scripts/Eye of Eternity: Fixed The Focusing Iris not respawning on wipe
Closes #22948

(cherry picked from commit f57b1e27d062286553b8dd3199ce118eb99ac270)
2022-01-01 13:28:41 +01:00
Shauren ba69c91f4b Core/Spells: Fixed checking free inventory space for some spells that have bad dbc data
Closes #24423

(cherry picked from commit 18b36734f6ac235dbb7a37ba46d1c8d09d8171ab)
2022-01-01 13:28:04 +01:00
Shauren 9f76071108 Core/Misc: Remove whitespace at the end of lines 2022-01-01 01:25:04 +01:00
Shauren 3b4a2a0a94 Core/DBLayer: Fix compilation with mysql 8
(cherry picked from commit 579d41acc5ca3af9900b546dc3e910a595cee066)
2022-01-01 01:10:25 +01:00
Shauren d73e4a9640 DB: World db column type corrections
* char to varchar
* unsigned float to float
* longtext to mediumtext (this is probably still too large for affected columns)
2021-12-31 16:38:19 +01:00
Shauren 112b8799ff DB: Purge mediumint columns from character db (change to full int) 2021-12-31 16:14:19 +01:00
Shauren 8eb1938fe8 DB: Convert all databases to InnoDB engine 2021-12-31 16:01:43 +01:00
Shauren 2565af5fd3 Scripts/Spells: Fixed startup errors in spell_gen_war_mode_enlisted 2021-12-31 14:16:59 +01:00
Shauren 276ef7ff11 Typo fix 2021-12-31 14:15:57 +01:00
Shauren 9d060d23c1 DB: Convert databases to utf8mb4 2021-12-31 13:59:55 +01:00
Shauren 9cf7f9a976 DB: Purge mediumint columns (change to full int) 2021-12-31 12:35:58 +01:00