参考 › 条件浏览器 › 角色

生命值百分比

经典旧世TBC 周年版经典进阶服永久服正式服
  • 该版本不可用(原因见提示)
  • 取决于设置、你的职业或其他插件(详情见提示)

作用

将指定单位的生命值占其最大生命值的百分比与你设置的百分比进行比较。

为什么会用到它

Compare a unit's health as a percentage of its maximum. This is the usual way to gate execute abilities, such as Execute or Hammer of Wrath only below 20% health, or Drain Soul as a target nears death, and to bring up a defensive such as Shield Wall or a Healthstone when your own health drops under 30%. Not available on Retail or Forever, where the game hides health values from addons. See also 生命值, 距离生命值百分比达到所需时间 and 范围内的生命值百分比.

示例

你的目标的生命值 小于 20%

设置

条件编辑器中每项设置的含义,取自游戏内的帮助。

单位 - The unit this condition uses as the target of comparison.

运算符 - How to compare 生命值百分比 with the 生命值 value. This comparison uses basic mathematical comparison operations.

生命值 - The health value of 单位 as a percentage of their total health.

其代码使用的辅助函数

标识符
HEALTHPCT
分类
角色

返回条件浏览器