Skip to content

Card.IsType ​

Signature ​

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

Description ​

Checks whether c has at least one of the type flags in type.

Parameters ​

  • c Card
  • type int

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 5566 indexed script(s).
  • Search this function in the Script Explorer with Card.IsType.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua4
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua4
Artmage Non-Finito74631897Scripts/c74631897.lua3
Pendulum Evolution55795155Scripts/c55795155.lua3
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Lady's Dragonmaid48658295Scripts/c48658295.lua4
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua1
Eternal Favorite87532344Scripts/c87532344.lua1
Surprise Fusion35167375Scripts/c35167375.lua3
Astrograph Sorcerer76794549Scripts/c76794549.lua2
Spellbook of the Grand Circle11911336Scripts/c11911336.lua3
Ultra Polymerization76647978Scripts/c76647978.lua1
Goyo Emperor59255742Scripts/c59255742.lua2
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua2
Melffy Playtime Surprise58036097Scripts/c58036097.lua3
Ashtraja Susanoo17020474Scripts/c17020474.lua12
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua2
Yomagna the Fire Phantom17350692Scripts/c17350692.lua4
Fiendsmith's Sequence49867899Scripts/c49867899.lua4
D/D/D Alfred the Divine Sage King11852093Scripts/c11852093.lua3
El Shaddoll Apkallone50907446Scripts/c50907446.lua1
Mementotlan Fusion66518509Scripts/c66518509.lua3
Meteoroa Drytron24166324Scripts/c24166324.lua1
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua1
...and 5542 more

Script Examples ​

Salamandra with Chain (62091148) ​

Source: Scripts/c62091148.lua

lua
end
function s.posfilter(c)
	return c:IsType(TYPE_EFFECT) and c:IsFaceup() and c:IsCanTurnSet()
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)

Astrograph Sorcerer, the Starfrost Magician (48171151) ​

Source: Scripts/c48171151.lua

lua
end
function s.pfilter(c,tp)
	return c:IsType(TYPE_PENDULUM) and not c:IsCode(id) and c:GetLeftScale()==1
		and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end

Artmage Non-Finito (74631897) ​

Source: Scripts/c74631897.lua

lua
end
function s.cfilter(c)
	return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDiscardable(REASON_SPSUMMON)
end
function s.spcon(e,c)