From 6898e8ef769de85b3efc6dc97bbfb6d31c84b172 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Apr 2026 10:44:11 +0000 Subject: [PATCH 1/2] Initial plan From 0984c06409e33806d30ef50064015730dba31f8f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Apr 2026 10:46:06 +0000 Subject: [PATCH 2/2] docs(conditions): add CONDITION_UNIT_IN_COMBAT = 106 Agent-Logs-Url: https://github.com/azerothcore/wiki/sessions/cc42cf47-3f82-4b43-9864-45da352cf3ce Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> --- docs/conditions.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/conditions.md b/docs/conditions.md index 1319c8a6..b191f72a 100644 --- a/docs/conditions.md +++ b/docs/conditions.md @@ -140,6 +140,7 @@ Two conditions with the same SourceType, SourceGroup and SourceEntry but with a | CONDITION_WORLD_SCRIPT | 103 | conditionId | state | Always 0 | | CONDITION_AI_DATA | 104 | dataId (true if AI::GetData(uint32 dataId) returns value) | value | Always 0 | | CONDITION_RANDOM_DUNGEON | 105 | checkDifficulty | difficulty | Always 0 | +| CONDITION_UNIT_IN_COMBAT | 106 | Always 0 | Always 0 | Always 0 | ### ConditionTarget @@ -664,6 +665,19 @@ Returns true when the player is queued for a random dungeon via the LFG/RDF syst - `ConditionValue2`: if `ConditionValue1 = 1`, compares against the player's current map difficulty. Value must be less than `MAX_DIFFICULTY` - `ConditionValue3`: always 0 +**CONDITION\_UNIT\_IN\_COMBAT = 106** + +Returns true when the target unit is currently engaged in combat. + +- - ConditionValue1: always 0 + - ConditionValue2: always 0 + - ConditionValue3: always 0 + - NegativeCondition: + - 0 (true if target IS in combat) + - 1 (true if target is NOT in combat) + +*Can be used with `CONDITION_SOURCE_TYPE_GOSSIP_HELLO` (type 20) and `NegativeCondition = 1` (ConditionTarget = 1 to target the creature) to prevent players from opening the gossip menu of specific creatures while they are in combat.* + ### \***REFERENCE TEMPLATES** - - SourceTypeOrReferenceId : used as negative, for reference ID