Skip to content

Card.IsAllCardTypes ​

Signature ​

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

Description ​

Returns true if every bit in type is present in c:GetCardType(). A zero mask matches.

Parameters ​

  • c Card
  • type int - TYPE_* bitmask.

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3534

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 11 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAllCardTypes.
CardIDScriptDetected Calls
Pere-Zenet Em Heru46273941Scripts/c46273941.lua1
Am Duazenet45151304Scripts/c45151304.lua2
Zenet Revelator Nefertari84512726Scripts/c84512726.lua1
Tauzenet Wadjet73490148Scripts/c73490148.lua1
Zenet-Nakhte Sphinx47095439Scripts/c47095439.lua1
Zenet Prophet - Amenhotep10007434Scripts/c10007434.lua1
A Journey Back to the Light - "Zenet"9762295Scripts/c9762295.lua1
Zenetmes Nekhbet10884847Scripts/c10884847.lua1
Zenet Cataract12555008Scripts/c12555008.lua1
Zenet Thunderfall48940617Scripts/c48940617.lua1
Ancient Secrets30752324Scripts/c30752324.lua1

Script Examples ​

Pere-Zenet Em Heru (46273941) ​

Source: Scripts/c46273941.lua

lua
end
function s.matfilter(c)
	return c:IsAllCardTypes(TYPE_NORMAL+TYPE_MONSTER)
		and c:IsFaceupEx() and c:IsAbleToGrave()
end

Am Duazenet (45151304) ​

Source: Scripts/c45151304.lua

lua
end
function s.matfilter(c)
	return c:IsAllCardTypes(TYPE_NORMAL+TYPE_MONSTER)
		and c:IsFaceupEx() and c:IsAbleToGrave()
end

Zenet Revelator Nefertari (84512726) ​

Source: Scripts/c84512726.lua

lua
end
function s.chkfilter(c)
	return c:IsFaceupEx() and c:IsAllCardTypes(TYPE_NORMAL+TYPE_MONSTER)
end
function s.setfilter(c)