aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Combat
AgeCommit message (Collapse)Author
2025-07-13Core/Misc: Move large functions out of header filesShauren
2024-12-31Core/Misc: Include cleanup - remove MapUtils.h from Containers.hShauren
2024-05-02Core/Combat: reset the ThreatManager update interval upon engaging the ↵Ovahlord
creature and move ThreatClear packet sending into the update cycle to mimic retail behavior (#29949)
2024-03-04Core/Creatures: Implemented CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY (ignore ↵Shauren
SPELL_EFFECT_SANCTUARY, used by Vanish)
2024-02-14Core/Creatures: Implemented CREATURE_STATIC_FLAG_3_NO_THREAT_FEEDBACKShauren
2023-10-13Dep/Boost: Drop windows boost hacks (#29358)funjoker
2023-08-23Core/Units: Fixed possible use after free in ThreatManagerShauren
Closes #28830
2023-08-18Core/Auras: Minor optimization for Unit object creation with msvc (not ↵Shauren
allocating a list end sentinel node for all of the 500 lists stored in Unit for each aura type)
2023-01-09Core/Misc Fixed build with boost 1.74 (#28679)DeadMouse
2023-01-07Core/Misc: Include cleanup, 2023 editionShauren
2023-01-06Core/Misc: Remove boost::heap::fibonacci_heap from header filesShauren
2023-01-06Core/Misc: Add missing Containers.h include where neccessaryShauren
2022-09-05Core/Combat: Allow PvE combat references to become suppressed, just like PvP ↵Shauren
ones (cherry picked from commit e8dfd8c25c69247b17bc9359dfbe3a1d96ef98bf)
2022-09-05Core/Spells: Delay combat flagging for spell targets until spell missile landsAlan Deutscher
(cherry picked from commit b59706c8b6856bdfe084a38330773725d3404f05)
2022-05-01Core/Spells: Rename SpellAttr4 to use official attribute namesShauren
* Corrected implementation of SPELL_ATTR4_CLASS_TRIGGER_ONLY_ON_TARGET * Implemented SPELL_ATTR4_NO_HELPFUL_THREAT * Implemented SPELL_ATTR4_NO_PARTIAL_IMMUNITY * Implemented SPELL_ATTR4_ALLOW_PROC_WHILE_SITTING * Implemented SPELL_ATTR4_USE_FACING_FROM_SPELL * Implemented SPELL_ATTR4_BOUNCY_CHAIN_MISSILES * Implemented SPELL_ATTR4_AURA_NEVER_BOUNCES * Implemented SPELL_ATTR4_AURA_BOUNCE_FAILS_SPELL * Implemented SPELL_ATTR4_AURA_IS_BUFF * Implemented SPELL_ATTR5_MELEE_CHAIN_TARGETING * Implemented SpellEffectAttributes::ChainFromInitialTarget
2022-04-30Core/Spells: Rename SpellAttr3 to use official attribute namesShauren
* Implemented SPELL_ATTR3_NO_AVOIDANCE * Implemented SPELL_ATTR3_ONLY_PROC_OUTDOORS * Implemented SPELL_ATTR3_ONLY_PROC_ON_CASTER * Implemented SPELL_ATTR3_PVP_ENABLING * Implemented SPELL_ATTR3_SUPPRESS_CASTER_PROCS * Implemented SPELL_ATTR3_SUPPRESS_TARGET_PROCS
2022-03-27Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlagShauren
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-12Core/Combat: Allow refresh pvp combat when assisting a unit that is in pvp ↵Gildor
combat (#26773) (cherry picked from commit 372c84392b064d3308ad49f5aca5e3223de59b66)
2022-03-11Core/Creature: rename CREATURE_FLAG_EXTRA_IGNORE_COMBAT into ↵offl
CREATURE_FLAG_EXTRA_CANNOT_ENTER_COMBAT (#26762) Co-authored-by: offl <offl@users.noreply.github.com> (cherry picked from commit 06b554c36e8f196667e0a72820b37b9dc25bdde0)
2022-03-05Core: whitespace cleanup, reduce double blank line to single (#25795)Kargatum
* Core/Misc: fix double empty line * worldserver.conf (cherry picked from commit a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
2022-01-26Core/Units: add new functionality for units to block or enable combat ↵Ovah
interactions (#25168) * Core/Units: add new functionality for units to block or enable combat entirely via helper to reflect what CREATURE_DIFFICULTYFLAGS_IGNORE_COMBAT and client AI functions imply * yeah... * Nuke Creature::IsCombatDisallowed helper as its unused by now * no combat extra flag may now be changed on transforms if the transformed entry does not have the flag (cherry picked from commit 764f22fc9157ad184baa38995ee4e2d821299935)
2022-01-23Core/Combat: Disable triggers entering combat (#25086)Giacomo Pozzoni
* Core/Combat: Disable triggers entering combat * Move check to database flags_extra flag in creature_template with value 0x00002000 * Fix Rotface puddle stalker too * Rename 9999_99_99_99_world.sql to 2020_07_22_00_world.sql (cherry picked from commit 6440c3bcac85a40de5c34aef1d8a8856966cc140)
2022-01-19Core/Common: Replace ASSERT(false, "...") with ABORT_MSG("...")jackpoz
(cherry picked from commit 54c701cf0db81c0062e8c5020e07db18984d0ffa)
2021-12-19Scripts/ICC: little bit of cleanup in Valithria after the "recent" changesccrs
(cherry picked from commit 7ffe0185711095b0f62a5edf1e1819935d02851c)
2021-12-18typo fix in commentTreeston
(cherry picked from commit 4fcb322010edb6a80fa08e633ce331f80410f301)
2021-12-17Core/Threat: Properly update offline states even if all threat references ↵Treeston
are offline. Closes #23639. (cherry picked from commit 55ec3bd73fd2618e4de199c147bbddcb99d11b19)
2021-12-17!= and == are not the same thing.Treeston
(cherry picked from commit 51cf1c7136741696fed9850b73f30cd45cb095a6)
2021-12-17Core/AI: No longer override chase movement with follow movement if the ↵Treeston
creature engages before JustAppeared has had a chance to fire. (cherry picked from commit 49b04c0fdd03d060d10f91a597857ec9c3d9f4ed)
2021-12-17Core/AI: Finally move the "is creature engaged" flag to be a property of the ↵Treeston
creature AI, where it honestly always belonged. Fixes #17981 and #23602 for real this time. (cherry picked from commit 0e7c66cb4c7ff7d44e232d0b50703a48605ffd24)
2021-12-14Entities/Unit: Properly unset engaged flag for creates that cannot have a ↵Treeston
threat list on combat exit. Fixes #23518. (cherry picked from commit f44539b64247ff626c53dc899c4ac3023bf9aa80)
2021-12-12Combat/Threat: Split ThreatManager::NotifyDisengaged off from ↵Treeston
ThreatManager::ClearAllThreat. NotifyDisengaged signifies intent to clear the engagement flag, and should only be called from AI. Fixes #23490. (cherry picked from commit 1158f267df22c0782fb5f20f7de31f5643ac0b58)
2021-12-12Core/Entities: Kick engagement logic upstairs to Unit (from ThreatManager), ↵Treeston
since all Units with AI need it (not just those with threat list). Fixes #17981. (cherry picked from commit dbe3bbefe734f8824e8f07c302e256f0d446b974)
2021-11-23Core/Misc: Fix issues reported by dynamic analysisjackpoz
Closes #23021 (cherry picked from commit 9942047c721110b4d2135028ec4c17060e0301bc)
2021-10-26Core/Threat: Properly sequence checking offline state _after_ adding the ↵Treeston
reference to the threat list. This ensures IsEngagedWith reports consistent values for downstack calls in Creature. Closes #22406. (cherry picked from commit 9f1755dbf13d475a26741690ec5d6a340a7f4230)
2021-10-25Core/Threat: Suppressed threat is now re-evaluated on taunt state update, ↵Treeston
and taunting units can no longer be suppressed. (cherry picked from commit fdbec8b6398295e75e38bd174318d5e172124905)
2021-10-23Core/Threat: Fear no longer suppresses threat. All confuse effects now ↵Treeston
suppress threat, even ones that wouldn't break on damage. (cherry picked from commit 704870496f672f628635e45a1cec98a485d86c28)
2021-10-23Core/Entities: Fixed an issue where creatures would not properly assist ↵Treeston
formation members in certain scenarios. Tagging #21967. (cherry picked from commit a001bc63b1182babddbb188f7c762c6168a98b5c)
2021-10-23Core/Threat: Only send SMSG_THREAT_UPDATE if the threat list actually changedTreeston
(cherry picked from commit 4e5d1b70219d77747e7e6dc31b553a7a1c451ad3)
2021-10-23Core/Threat: Further tweak to assist threat, all CC now prevents assist ↵Treeston
threat splitting (not just damage-breakable CC) (cherry picked from commit 408ce487323504fcdf693b7dfa581b74d5073971)
2021-10-23Core/Threat: Threat system adjustments:Treeston
* Online states are now re-evaluated before victim update instead of continuously. Closes #22226. Tagging #21501. * Victim update now happens every 1s as opposed to every server tick unless current target goes away. * Suppressed threat is no longer re-established until the victim gains additional threat (by hitting the target, for instance). * Assistance threat is now split between non-controlled units threatened by target, as opposed to all units threatened by target. (cherry picked from commit 5cea572a9ad524c6f28ff8519bee61d1ff4357d0)
2021-10-22Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a ↵Treeston
crapton of booleans (cherry picked from commit 042f5515e4f3e52b0d2e23d9b9e147041849ce12)
2021-09-26Core/Thread: Fix crash added in fd33b1cd02a1c69fc78f47f079eadc43c331d054jackpoz
Fix crash caused by dereferencing uninitialized field. (cherry picked from commit 623bc6483a067accf816a65c693b0c0df6a999c3)
2021-09-26Core/Threat: My dictionary informs me that "fixtate" is not, in fact, a ↵Treeston
word. Corrected to "fixate". fd33b1c follow-up (cherry picked from commit 1d27f83bda1053578911f53b6231bcb96c9b7b1e)
2021-09-26Core/Threat: Re-add fixtate system. I am being told Netherspite needs it.Treeston
(cherry picked from commit fd33b1cd02a1c69fc78f47f079eadc43c331d054)
2021-09-261b7ec4b follow-upTreeston
(cherry picked from commit 7fe59c95d857708181991bf8478712b56e5076ac)
2021-09-26Core/Threat: Fix taunt behavior in some edge casesTreeston
(cherry picked from commit 1b7ec4bc841cd51e17bb21a3d4b774102f195c46)
2021-09-26Core/Unit: UNIT_FLAG renamesTreeston
[UNIT_FLAG_PLAYER_CONTROLLED -> UNIT_FLAG_POSSESSED] [UNIT_FLAG_PVP_ATTACKABLE -> UNIT_FLAG_PLAYER_CONTROLLED] Signed off by: Shauren, Warlockbugs. (cherry picked from commit 081eab3cf5a5ec42917b2a7eaebf816fb36da423)
2021-08-08Core/Threat: Fix taunt logic relying on unspecified behavior by unordered ↵Treeston
boost heap iterators. Use ordered iterators instead, this is cheap for our use case anyway. This will make taunt behave consistently again. Closes #21499. (cherry picked from commit 71b5ed6832ac4162754ec50f53cd76305f8a187a)
2021-06-21Core/Combat: Unify combat permitted checks between CvC and PvC - only ↵Treeston
require "not friendly" in all cases. Fixes Yogg-Saron encounter. Closes #21380. Also some bonus cleanup to Yogg's script to make transition cleaner. (cherry picked from commit 4da9321d2bdde17ddf1a55b92ab130216e9af27b)