Skip to content

Auxiliary.IsTypeInText ​

Signature ​

lua
Auxiliary.IsTypeInText(Card c, int type) -> bool

Description ​

Returns true if c's text-registered type mask contains type.

Parameters ​

  • c Card
  • type int

Returns ​

  • bool - true if c's text type mask contains type.

Source ​

  • Utilities/utility.lua:584

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 3 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.IsTypeInText.
CardIDScriptDetected Calls
Union Controller2133971Scripts/c2133971.lua1
Shinobaroness Shade Peacock33325951Scripts/c33325951.lua1
Geminize Lord Golknight72305034Scripts/c72305034.lua1

Script Examples ​

Union Controller (2133971) ​

Source: Scripts/c2133971.lua

lua
end
function s.filter(c)
	return c:IsType(TYPE_SPELL+TYPE_TRAP) and aux.IsTypeInText(c,TYPE_UNION) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)

Shinobaroness Shade Peacock (33325951) ​

Source: Scripts/c33325951.lua

lua
end
function s.filter(c)
	return c:IsType(TYPE_SPELL+TYPE_TRAP) and aux.IsTypeInText(c,TYPE_SPIRIT) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)

Geminize Lord Golknight (72305034) ​

Source: Scripts/c72305034.lua

lua
end
function c72305034.thfilter(c)
	return aux.IsTypeInText(c,TYPE_DUAL) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
function c72305034.thtg(e,tp,eg,ep,ev,re,r,rp,chk)