Reference › Function reference › Conditions

Conditions.totem.specific

dependency

Call as

Conditions.totem.specific(value)

Record the dependency Conditions.totem.specific, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.

What it does

True when a totem spell condition names a valid spell ID and value.ranked is nil or a boolean.

Arguments

NameTypeWhat it does
valuetableSaved condition settings with spell and ranked fields.

Returns

1booleanTrue when the value passes the check.

Editions

Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.

It reads no game API directly.

How the addon calls it

Source

Conditions/totem.lua, line 85. Read only in game; Duplicate makes an editable copy.

Conditions.totem.specific(value)
    return addon.IsConditionSpellID(value.spell) and (value.ranked==nil or type(value.ranked)=="boolean")

Back to Function reference