- 该版本不可用(原因见提示)
- 取决于设置、你的职业或其他插件(详情见提示)
作用
将你周围设定距离内的单位数量与你设置的数量进行比较:勾选“敌人”时统计敌人,否则统计其他所有单位;勾选“战斗中”时只统计处于战斗中的单位。如果任何将被统计的单位的距离不确定,则整个计数不可用。
为什么会用到它
Counts the units around you within a distance: enemies when Enemy is ticked, non-enemies when it is cleared. The classic use is a switch condition or branch that moves to an AoE rotation when enough enemies are close, such as Whirlwind, Blizzard, Consecration or Swipe at 3 or more targets within 8 yards. It counts what the addon can observe, mainly nameplates, so turn enemy nameplates on; the distance cannot exceed your nameplate distance setting, and when any unit's range is uncertain the whole count is unavailable. Tick In Combat to count only units that are fighting, so an idle pack beside the pull does not start your AoE rotation. See also 距离.
示例
敌人在 8 码内的数量 大于或等于 3
设置
条件编辑器中每项设置的含义,取自游戏内的帮助。
敌人 - 勾选时统计敌人,取消勾选时统计非敌人。
战斗中 - 只统计处于战斗中的单位。对敌人来说,是指此刻正在战斗的敌人,而不是所有姓名板可见的敌人。若游戏不报告某个单位的战斗状态,则该统计为不可用。
运算符 - How to compare 距离内计数 with the 计数 value. This comparison uses basic mathematical comparison operations.
计数 - 已确认位于你“距离”范围内的已观测单位数量。
距离 - 统计的是插件已观测到的单位快照,包括姓名板和被追踪的单位别名,而不是附近的每个单位。只有当某个单位的距离上限在“距离”之内时才计入;成员身份不确定,或身份、敌对状态、距离或姓名板设置无法读取,都会使整个计数为不可用,在“除非”下同样如此。已知消失或被重复使用的单位标识会被排除。“距离”不能超过当前的姓名板距离设置;该设置也不能保证扫描完整。
其代码使用的辅助函数
Conditions.spatial. booleanRead Conditions.spatial. combatFilter Conditions.spatial. finite Conditions.spatial. nameplateDistanceCount Conditions.spatial. protectedRead Functions.values. compare Functions.presentation. compareString Functions.cache. getCached Functions.values. isin Functions.presentation. nullable Functions.presentation. playerize





