aboutsummaryrefslogtreecommitdiff
path: root/src/server/game
AgeCommit message (Collapse)Author
2022-03-26Core/AI: Change m_originalCaster to m_caster when calling OnSpellStart (#27815)offl
(cherry picked from commit ad5129e74b316b850c891640a17daa7831d00a27)
2022-03-26Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks (#27704)offl
(cherry picked from commit 3dca705acc953d20e4a43d4c2b3c97a84e5ab346)
2022-03-26Revert "Core/Spells: Force Invisibility (mage) to leave combat." (#27701)Gildor
This reverts commit 4b0acb743264971859a7c26684394792706f5209. Co-authored-by: kaelima <kaelima@live.se> (cherry picked from commit a8475e5d70c4a49b3cd9865f5059ac12a333a98c)
2022-03-24Core/SAI: Remove SMART_ACTION_ADD_AURA & actions to change object flags (#27571)offl
(cherry picked from commit 5ba93a95de911277908596d805e7fa7f38a18c3a)
2022-03-24Core/Spells: Add MaxAffectedTargets for Domination (#27541)Grindelwald
(cherry picked from commit 5f0e80bf4385e81d607ea81a9de3c92a11db8de0)
2022-03-24Core/AI: Fix crashes caused by charmed Creatures having null AI for 1 map ↵Giacomo Pozzoni
update tick (#27434) Implement using ScheduledChangeAI instead of nullptr to signal a required AI change (cherry picked from commit 19e99db821ba5975e88ec160df3f4ff78ed562b0)
2022-03-24Core/SAI: Use GetBaseObject as second param of ↵offl
SMART_ACTION_ACTIVATE_GAMEOBJECT & reorder GameObjectActions (#27461) (cherry picked from commit 87cb0a4212535731749aebb2d3fe8f5c3000be92)
2022-03-24Core/SAI: Remove SMART_ACTION_SEND_GO_CUSTOM_ANIM, make ↵offl
SMART_ACTION_ADD_AURA & SMART_ACTION_SET_GO_FLAG deprecated (#27452) (cherry picked from commit 77098375396a3b067cf06174bd464f65d7e0cd50)
2022-03-24Core/Misc: Verify LFG role selections by class (#27348)ihm-tswow
* Core/Misc: Verify LFG role selections by class * style fix Co-authored-by: MaxtorCoder <warsongkiller.s8@gmail.com> * fix style * improve LfgRoleClasses readability * remove unnecessary comments * add missing SharedDefine include - try fix nopch * style fix Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: MaxtorCoder <warsongkiller.s8@gmail.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> (cherry picked from commit 5e2b2fd3f8bd8e1c1d3b4f3b833b9af6890d55dc)
2022-03-24Core/Units: Rename AnimationTier to AnimTier for consistency between branchesShauren
2022-03-24Core/Battlegrounds: Avoid teleport players when relogin inside Strand of the ↵Gildor
Ancients (#27414) (cherry picked from commit d3b6d9a38cdb90ddaf7d5481f9603388eb7e7e24)
2022-03-24Core/Battlegrounds: Avoid reset BG and Arena scoreboard stats and BG map ↵Gildor
achievement criterias when relogin if player was already in the BG (#27280) (cherry picked from commit fade6fbf4fab1c520de72417cbfb1c7a6dc69c32)
2022-03-24DB/SAI: Replace SMART_ACTION_SEND_GO_CUSTOM_ANIM with GameObjectActionsoffl
(cherry picked from commit 8516984ffe1a0241b5cfc47f2d0124291503aec1)
2022-03-23Scripts/The Eye: Few updates to Kael'thas & Astromancer (#27304)offl
(cherry picked from commit 43315e0e19fe1609b336f6a9aae486e302317c79)
2022-03-23Core/Auras: Properly clean up partial charm applicationsShauren
Ref #24876 (cherry picked from commit 9174281b9253712982273b9b703d9fbac5cef9cd)
2022-03-22Core/Spells: Add MaxAffectedTargets to Chains of Naberius(36146) (#27291)Grindelwald
Closes #27289 (cherry picked from commit c3973ff577511773bb6bc94bd738b9014060e060)
2022-03-22Core/Pets: Do not force pets to follow their charmer when possessed by ↵Grindelwald
player (#27293) * Fixes Eyes of the Beast Closes #27226 Co-authored-by: Shauren <shauren.trinity@gmail.com> (cherry picked from commit e63838f624b28b4fc5fcba2b8c64fced8ef8e11c)
2022-03-22Core/PacketIO: Fixed ScenarioState packet structure (#27880)Krudor
2022-03-22Core/Scenarios: Fix bad criteria evaluation in scenarios (#27881)Krudor
* Adjust Scenario criteria evaluation process so that entire criteria trees are not completed when a single child tree is completed.
2022-03-22Core/Spells: Interrupt spells and auras before sending loot to client (#27279)acidmanifesto
(cherry picked from commit a24ea431dc25cee3cfd80b89273085f62c83b1fb)
2022-03-22Core/Battlegrounds: Avoid increasing player count per team when re-logging ↵Gildor
if player was already in the BG (#27266) (cherry picked from commit 6c512113d35a493a420eeb1c3bf6c01253003d7b)
2022-03-22Core/Vehicles: Add additional logging to track issue #24876Shauren
(cherry picked from commit f20b7a10805f2f989e1c44648e1e6ecd9826ef55)
2022-03-22Core/Misc: Add TempSummon timer to GetDebugInfoShauren
(cherry picked from commit 7b9b785c5138c279fea95a9a3c193c0997bf4c16)
2022-03-22Core/SAI: Fix error messagejackpoz
Fix the error message about valid range values for SMART_ACTION_ACTIVATE_GAMEOBJECT (cherry picked from commit 5b9acbded12c6f68acd514642e1c940404c4b312)
2022-03-21Core/SAI: Remove deprecated events and actions (#27258)offl
(cherry picked from commit c508203895517885d09bbea0ae39da700f49708c)
2022-03-21Core/Battlegrounds: Fix text messages in Eye of the Storm when capture ↵Gildor
Draenei Ruins (#27260) (cherry picked from commit e02e78406221d7efa7ed5b3d7e81fb20d9a8df37)
2022-03-21Core/SAI: Remove reactState param from SMART_ACTION_WP_START (#27255)offl
Ref #26728 (cherry picked from commit 04909bada85d4770a58a5b2b6f2180f5aacb1b81)
2022-03-21Core/SAI: Add SMART_ACTION_ACTIVATE_GAMEOBJECT action (#27216)Giacomo Pozzoni
Closes #27196 (cherry picked from commit 0817be8f76dead48e2c0eeb7d5a7434a452f0dcf)
2022-03-21Core/Combat: Fixed combat after remove charm (#27248)Lucas Nascimento
https://github.com/TrinityCore/TrinityCore/pull/27038#issuecomment-958784361 (cherry picked from commit 0cc0b3f926a55fd70a51a90631dde99fbb8c6b8b)
2022-03-21Core/Creatures: Refactor ObjectMgr::ChooseCreatureFlags to allow selecting ↵Shauren
only 1 flag field (cherry picked from commit e4430cd2bedf2079961bd1a30ba9f5f1de93af82)
2022-03-20Core/Unit: Fixed wrong combat stop when set charmKeader
(cherry picked from commit 9b354c6bebdf9fe9c9842330447162edc63cc751)
2022-03-20Core/SAI: Make 'no, thanks' actions deprecatedoffl
Deprecated events and actions will be removed after 2 weeks (cherry picked from commit ab3bb36a46d5419cd0ac95ab367e68252ec88044)
2022-03-20Core/Scripting: Get rid of ModifyVehiclePassengerExitPos (#27126)offl
(cherry picked from commit d7adc50daa5a20142e0f39a9f65d39869525fd0e)
2022-03-20Entities/Unit: Fixed wrong combat stop when remove charm (#27038)Lucas Nascimento
(cherry picked from commit fa3a62ae4e890dc526f2f0474e3469ccddb15edf)
2022-03-20Core/SAI: Make SMART_EVENT_WAYPOINT_START & SMART_EVENT_CHARMED_TARGET ↵offl
deprecated Deprecated events and actions will be removed after 2 weeks (cherry picked from commit 9e78329c8b8294f3d4bc6e6ca4e6abfe6d53b917)
2022-03-20DB/SAI: Make SMART_EVENT_EVENT_PHASE_CHANGE deprecated; avoid AddAura, ↵offl
re-handle equipment in few scripts Deprecated events and actions will be removed after 2 weeks Ref 1d1e090fe928665d0612482f222466535f94852c 0e1835ee78bd8f79b8dcd5f3ed6d9f7be1eccadb (cherry picked from commit 1053345692750d978ed44eef6cc7110064c423fc)
2022-03-20Core/Conditions: Fixed conditions not working for area aurasShauren
(cherry picked from commit 8693ee56955ce4d31e9e69f3971f52e250c1280c)
2022-03-20Core/Creature: Formation reset (#27040)Jinnaix
* Core/Creature: Formation reset * Update CreatureGroups.cpp whoops * Core/Creature: Formation reset Keep dismiss functionality (cherry picked from commit 7051aab4219765e0c9faac0ce7bde0160451712a)
2022-03-20Core/SAI: Remove deprecated events and actions (#27039)offl
(cherry picked from commit 887605d945fd2330865e84fd066a84e6f4570149)
2022-03-20Core/Unit: Fixed Deterrence stopping working for no reason (#26996)Lucas Nascimento
(cherry picked from commit 63c6f7bc26b73f59165179935d2556aea1636f12)
2022-03-19Core/Creature: Disallow nearly all non-static flags on DB side (#27024)offl
Closes #25764 (cherry picked from commit a88001938e1e77532c5db9596abc9efdef6d2257)
2022-03-19Scripts/Spells: Handle quest tame spells in spell script (#27022)offl
(cherry picked from commit 4441d42253d64ccd8fc9f78f1b44c851d6408312)
2022-03-19Core/Combat Improve extra attacks handling (#26859)trickerer
* Core/Combat Improve extra attacks handling * Remove unnecessary _lastDamagedTargetGuid check * Add missing initialization of _lastExtraAttackSpell. Do not use hardcoded spell ids. * Partially revert 9f90b835019b (cherry picked from commit 084f8f3ded45150a57eabd3ad117f1152d4d046d)
2022-03-19Core/Misc: Improvement item durability repair logic. (#26911)Mikhail Redko
* Core/Misc: Improvement item durability repair logic. * Move item repair cost calculation logic from Player::DurabilityRepair to Item::CalculateDurabilityRepairCost * Make item repair cost calculation more congruent with client logic (std::round) * Do not repair items if player does not have enough money to pay for the repair of all items at once * Withdrawing money from guild bank only once to avoid spam in the guild bank log and reduce number of transactions in the database Closes #25937 * Fix build * Remove unnecessary scope * Fix visual studio warning and one more check for reliability (cherry picked from commit 3cef126d0a449219f154a6498d26831f86220dfa)
2022-03-18Core/SAI: Split set/remove unit_flags actions (#26954)offl
(cherry picked from commit 0a2fca1aed4f2926c73f906769ff92918f7e2dbd)
2022-03-16Core/Misc: Link CREATURE_FLAG_EXTRA_INSTANCE_BIND to corresponding static flagoffl
(cherry picked from commit f89bb434196c045b684218f5e7a10a6ffd5cd421)
2022-03-15Core/SAI: Remove possibility to set/remove unit_flags2offl
So far I see that only Cannot Turn flag can be changed by scripts and action to change it didn't existed in 3xx. If someone will need to change that flag, it should be implemented by action which will change only that flag and not any flag of that type. (cherry picked from commit c8061d8ba620e78c1344ad5f2d476d7d6e5057cb)
2022-03-15Core/Misc: Leave detailed description for UNIT_FLAG_NON_ATTACKABLEoffl
(cherry picked from commit 8a70efed8c56b0b24caa4f449279e75b2375e45f)
2022-03-15Core/Misc: Update comments of static flagsoffl
(cherry picked from commit b4bb2bc0c52f682564e97d8e23d23784ce37c0ba)
2022-03-15Core/Misc: Update enums of static flagsoffl
(cherry picked from commit f381e1824423d9ef0307b63651a90f29b4bab5f9)