HasBuffsCondition - cyritegamestudios/trust GitHub Wiki
Overview
Checks whether the target has a given list of buffs or debuffs (use HasBuffCondition
for a single buff or debuff).
Syntax
HasBuffsCondition.new(buff_names, require_all)
Parameter | Type | Description |
---|---|---|
buff_names | list | Value of en for the buffs or debuffs in res/buffs.lua |
require_all | boolean | If true , will return false if any buffs or debuffs are missing. If false , will return true if any buffs or debuffs are present. |
Examples
HasBuffsCondition.new(L{'Poison', 'Silence'}, false)
HasBuffCondition.new(L{'Refresh', 'Regen'}, true)