aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-02-02Core/Spells: Correct implementation of ↵Shauren
SPELL_ATTR2_TRIGGERED_CAN_TRIGGER_PROC, SPELL_ATTR3_TRIGGERED_CAN_TRIGGER_PROC_2, SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED and rename them (SPELL_ATTR2_ACTIVE_THREAT, SPELL_ATTR3_NOT_A_PROC, SPELL_ATTR3_CAN_PROC_FROM_PROCS)
2022-02-02Warning fixesShauren
2022-02-02Core/Pets: Updated pet summoning for latest client version (5 Call Pet ↵Shauren
spells and stable size 200)
2022-02-01Core/Misc: GCC build fixShauren
Closes #27707
2022-01-31Core/Pets: Adjust pet slot saving logic after constant changes in ↵Shauren
22e823b5f9693e461ee158913c1caf3484eeb039
2022-01-31Core/Pets: Change PET_SAVE_NOT_IN_SLOT constant from 100 to -1 to truly ↵Shauren
avoid conflicts when growing stable size and change PET_SAVE_AS_DELETED from -1 to -2
2022-01-31Core/Pets: Save last summoned pet number in characters tableShauren
2022-01-31Core/Pets: Removed deprecated enumShauren
2022-01-31Core/Pets: Removed storing stable slot count in dbShauren
2022-01-31Core/PacketIO: Removed handlers for two pet opcodes that no longer existShauren
2022-01-31Core/Pets: Fixed saving pets put in stable while not being summonedShauren
Closes #26599 (cherry picked from commit 4acd6e1d3821931ad3c2355c10e1ec4da6e3fb64)
2022-01-31Core/Pet: Fix assert triggered by e203ecda88a327c4e93588f39cc4ffdcf99b30f7jackpoz
(cherry picked from commit 22a5b0fcde8f04af5ed860eeb8f6b4a59e65b723)
2022-01-31Core/Pet: Attempt to fix assertions triggered when summoning pets (#26501)Giacomo Pozzoni
* Core/Pet: Attempt to fix an assertion triggered when re-summoning the current pet * Core/Pet: Attempt to fix an assertion triggered when stabling a pet while in a vehicle * Core/Pet: Attempt to fix an assertion triggered when stabling a pet and casting spell 6962 * Core/Pet: Attempt to fix an assertion triggered when casting spell 6962 while being dead * Core/Pet: Attempt to fix an assertion triggered when summoning a pet while on vehicle 34775 * Handle cases in a generic way * Code cleanup * Core/Pet: Attempt to fix an assertion triggered when summoning a pet while on vehicle 34775 with a new character (cherry picked from commit e203ecda88a327c4e93588f39cc4ffdcf99b30f7)
2022-01-31Core/Pets: Add missing nullptr checkShauren
(cherry picked from commit 0152878de5c1563cbe8d13fbf4f85839d741aabf)
2022-01-31Core/Pets: Fixed crash happening when current pet is forcibly removed while ↵Shauren
being temporarily unsummoned (like on a mount) (cherry picked from commit d163735abdf37c8840dbb7e3151d91bc898473ef)
2022-01-31Core/Pets: Fixed crash happening when summoning a different pet than one ↵Shauren
that was unsummoned by summoning a guardian (imp -> infernal -> felhunter) Closes #25478 (cherry picked from commit d29274f3a142545a386420e54f6169e4f7ed6eda)
2022-01-31Core/Pets: Fixed automatic resurrecting pets on battleground graveyardsShauren
Closes #25289 (cherry picked from commit 74a0d579eef07c013cc8deff930a975cf19c487f)
2022-01-31Core/Pets: Fix loading pet dataShauren
Closes #25269 (cherry picked from commit a9a4f05a282fd85e4f22923ec251c92e79581a47)
2022-01-31Core/Spells: Fix summoning warlock pets in case that pet has never been ↵Shauren
summoned before (cherry picked from commit bbcf00257ebdb75fa30f0484cb185058139f8ae4)
2022-01-31Core/Spells: Fix summoning SUMMON_PET type petsShauren
Closes #25265 (cherry picked from commit 9c5876d8abdc71830c5eb12a6ed036621df4bd6e)
2022-01-31Core/Pets: Pet management refactoring (#25191)Shauren
* Core/Pets: Pet management refactoring * Preload basic pet data on character login with async query * Load additional pet data (declined names/auras/spells/cooldowns) using async query after we are sure pet loading will succeed * Remove all select queries related to pet stable/unstable * Remove all silent pet deletions except explicit UI-triggered abandons * Fixed displaying stable master content when current pet is not summoned * Allow to stable/swap unsummoned current pet Closes #3610 Closes #21266 (cherry picked from commit 5c1fc5e3876549f5ed2b9051fffb6f3d94a67d7a)
2022-01-30Core/DBUpdater: Apply each sql update file in a separate transactionShauren
2022-01-30Scripts/Spells: Moved Blessing of Faith script to spell_items (#27692)Teleqraph
2022-01-30Scripts/Spells: Fixed Holy Shock visualsShauren
2022-01-30Scripts/Spells: Updated Holy Shock spell script.Nyr
* renamed related enums. * removed unnecessary rank dependency checks.
2022-01-30Core/Scripts: Expose IsCrit to hit hooks for spell scriptsShauren
2022-01-30Core/Guilds: Fixed loading of guild member logout timeShauren
Closes #27690
2022-01-30Scripts/Spells: Judgment (Holy) will now apply Rank 3 debuff if the paladin ↵Teleqraph
knows it (#27685)
2022-01-29Core/Objects: Don't consider SMSG_UPDATE_OBJECT packets that contain only ↵Shauren
destroyed objects as empty
2022-01-29Core/Objects: Cleanup SmoothPhasing code - move to separate files and better ↵Shauren
integrate it with visibility system
2022-01-29Core/Objects: Implement SmoothPhasing part of CreateObject and replacing ↵Seyden
visible objects
2022-01-29Core/Objects: Properly choose between "Destroyed" or "OutOfRange" during ↵Shauren
visibility update
2022-01-29Core/Objects: Add overridable function UpdateObjectVisibilityOnDestroyShauren
2022-01-28Core/Spells: Exclude empty mods from affecting spells and ignore ↵Shauren
PointsIndexX mods for spells that don't have any effect at that index
2022-01-28Scripts/Spells: Fix shaman Lava Surge proc (#27667)Robingad
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-01-27Scripts/Spells: Move shaman Lava Burst crit chance calculation to scripts ↵Robingad
and add Lava Burst Overload (#27676)
2022-01-27Scripts/Spells: Fix shaman Earthquake (#27620)Robingad
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-01-26Core/Gossip: Sync naming and db structure with 3.3.5Shauren
2022-01-26Core/ChatCommands: Do not parse partial strings for numeric paramters (PR ↵Peter Keresztes Schmidt
#25259) Check if integral/floating point type arguments were parsed successfully. std::stoull will happily parse floating point strings until the decimal separator and return the value. Make sure for all parsing methods that we actually parsed the whole token. This allows to use handler arguments like Variant<uint32, float> which will be populated with the right type depending on the token value (e.g "10" vs "10.0"). (cherry picked from commit 7edad0d601a7ae925cba850c5a23019f99be2a1e)
2022-01-26Core/SAI: Spell casts that cannot be executed because the unit is currently ↵Giacomo Pozzoni
casting another spell will be retried asap with priority over other events (#25238) * Core/SAI: Spell casts that cannot be executed because the unit is currently casting another spell will be retried asap with priority over other events * Core/SAI: Re-sort the events only when needed * Fix some priority reset and wrong mEventSortingRequired handling * Code cleanup. Sort only events loaded from db (not stored events, not timed action list). * Code cleanup. Raise priority of failed casts so they are retried before other spells * Keep priority of the action fails and is rescheduled on next update * Don't try recasting a spell in SMART_ACTION_CAST if there are multiple targets and at least 1 was successful (cherry picked from commit ca25e8d0199730c0976ebc37317e9407aceccc34)
2022-01-26Core/ChatCommands: Honor exact matches during enum arg parsing (PR #25255)Peter Keresztes Schmidt
(cherry picked from commit df29f605959aa449a3962199ee1cac3e09e05e38)
2022-01-26Scripts/Commands: Use enum type arg for HandleDebugAnimCommand (PR #25256)Peter Keresztes Schmidt
* Core/Shared: Make Emote enum smart * Scripts/Commands: Use enum type arg for HandleDebugAnimCommand (cherry picked from commit 86dc58974a46b554042f33df674e3e40ef0cec1e)
2022-01-26Core/Warden: Fix for LUA_STR_CHECK (#25247)scizzydo
The check above is what I use to actually get a real result for LUA_STR_CHECK, which when I used variables that would have a string to them it actually fails the check. When checking for items like a function if it exists of course it won't work... In addition, fixing the Unk2 to Unk3 causes people to be able to adjust the address of the check to the address 0x00419210 to make warden perform the FrameScript__Execute to run lua on the client. This seems to be the big request like in https://github.com/TrinityCore/TrinityCore/issues/23035 (cherry picked from commit 4125a81bb132c8d108f5bb07787f00a9fadf5838)
2022-01-26Core/ChatCommands: Add support for enum type arguments (PR #25242)Peter Keresztes Schmidt
(cherry picked from commit 5e40eb20e2789b86d4786d86b4bbb8ae83de5e1e)
2022-01-26Core/Unit: Make HandleEmoteCommand typesafe (#25249)Peter Keresztes Schmidt
* Scripts/ScarletMonastery: Fix wrong emote during Headless Horseman encounter * Scripts/HoR: Fix wrong emote during escape event * Core/Unit: Make improve type safety of HandleEmoteCommand Change argument type to the expected enum type Emote * Scripts/CoS: Use SetUInt32Value to set UNIT_NPC_EMOTESTATE UNIT_NPC_EMOTESTATE is no flag field (cherry picked from commit 6c7837f947ff4eb5110a116a371daa6f9e2b3bbe)
2022-01-26Core/Spells: Mark constructors of Spell/AuraScript handlers as explicit (#25248)Peter Keresztes Schmidt
Mostly to make clang-tidy happier (cherry picked from commit 34d403e83f42304332f89ffc73549f6f2c695ccd)
2022-01-26Core/Quests: Sync comments/log with 3.3.5Shauren
2022-01-26Script/Quest: The Light of Dawn (#25243)Aokromes
remove incorrect check, source: https://www.wowhead.com/spell=53606/the-light-of-dawn Flags Can be used while dead https://www.wowhead.com/quest=12801/the-light-of-dawn#comments:id=1495830 https://www.wowhead.com/quest=12801/the-light-of-dawn#comments:id=374127 (cherry picked from commit 681c738c61cdf64728fcd86d7598666ab2fd8199)
2022-01-26Core/AI: Remove code that removed UNIT_DYNFLAG_LOOTABLE from possessed units ↵Giacomo Pozzoni
(#25229) * Core/AI: Remove code that removed UNIT_DYNFLAG_LOOTABLE from possessed units * Update PassiveAI.cpp Restored logic that removes loot flag while being possessed * Restored logic that removes loot flag while being possessed (cherry picked from commit 298d7994850dfc777c56a7672042d78074b67f3d)
2022-01-26Scripts/Naxxramas: Adjust Frogger event timer (#25214)Gildor
* Scripts/Naxxramas: Adjust Frogger event timer Co-authored-by: Carbenium <carbenium@outlook.com> (cherry picked from commit 7035a9caf12c72d6710bfec71dc2641eccf82eaf)