Skip to content

Auxiliary.HasMentionedCounter ​

Signature ​

lua
Auxiliary.HasMentionedCounter(Card c, int counter) -> bool

Description ​

Checks c.mentioned_counter[counter], returning that entry when present and false otherwise. The card script must declare its mentioned_counter table; this checks mention metadata, not counters currently on the card.

Parameters ​

  • c Card
  • counter int - Counter identifier.

Returns ​

  • bool - Scripts use true entries for mentioned counter identifiers.

Source ​

  • Utilities/utility.lua:581

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 1 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.HasMentionedCounter.
CardIDScriptDetected Calls
Spell Power Attainment39123673Scripts/c39123673.lua2

Script Examples ​

Spell Power Attainment (39123673) ​

Source: Scripts/c39123673.lua

lua
	[0x1]=true,
}
function Auxiliary.HasMentionedCounter(c,counter)
	return c.mentioned_counter and c.mentioned_counter[counter] or false
end