diff --git a/changelog/snippets/other.6156.md b/changelog/snippets/other.6156.md new file mode 100644 index 0000000000..8d4ab8fa49 --- /dev/null +++ b/changelog/snippets/other.6156.md @@ -0,0 +1 @@ +- (#6156) Mention that `OnAdjacentTo` only works for same-army structures in the annotation comment. diff --git a/lua/sim/units/StructureUnit.lua b/lua/sim/units/StructureUnit.lua index a2eb8d9830..c501da0fde 100644 --- a/lua/sim/units/StructureUnit.lua +++ b/lua/sim/units/StructureUnit.lua @@ -736,7 +736,7 @@ StructureUnit = ClassUnit(Unit) { --------------------------------------------------------------------------- --#region Adjacency feature - -- Called by the engine when a structure is finished building for each adjacent unit + -- Called by the engine when a structure in the same army is finished building for each adjacent unit ---@param self StructureUnit ---@param adjacentUnit StructureUnit ---@param triggerUnit StructureUnit