Skip to content

Auxiliary.IsCounterAdded ​

Signature ​

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

Description ​

Returns true if counter is registered in c.counter_add_list.

Parameters ​

  • c Card
  • counter int

Returns ​

  • bool - true if counter is registered on c.

Source ​

  • Utilities/utility.lua:574

Used By ​

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

  • Detected in 2 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.IsCounterAdded.
CardIDScriptDetected Calls
Battle Shogun of the Six Samurai74752631Scripts/c74752631.lua1
Cosmic Slicer Zer'oll1487805Scripts/c1487805.lua1

Script Examples ​

Battle Shogun of the Six Samurai (74752631) ​

Source: Scripts/c74752631.lua

lua
end
function c74752631.thfilter(c)
	return aux.IsCounterAdded(c,0x3) and c:IsAbleToHand()
end
function c74752631.thtg(e,tp,eg,ep,ev,re,r,rp,chk)

Cosmic Slicer Zer'oll (1487805) ​

Source: Scripts/c1487805.lua

lua
end
function c1487805.thfilter(c)
	return aux.IsCounterAdded(c,0x100e) and c:IsAbleToHand()
end
function c1487805.thtg(e,tp,eg,ep,ev,re,r,rp,chk)