Skip to content

Card.IsLevel ​

Signature ​

lua
Card.IsLevel(Card c, int level1, [int level2], [... int]) -> bool

Description ​

Checks whether c's current Level equals any supplied level value. nil level arguments are ignored.

Parameters ​

  • c Card
  • level1 int
  • level2 int optional
  • ... int optional

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 695 indexed script(s).
  • Search this function in the Script Explorer with Card.IsLevel.
CardIDScriptDetected Calls
Lady's Dragonmaid48658295Scripts/c48658295.lua1
Magnet Bonding65514302Scripts/c65514302.lua1
Dark End Evaporation Dragon62002838Scripts/c62002838.lua1
Odd-Eyes Arcray Dragon6218704Scripts/c6218704.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua2
Light End Sublimation Dragon35614780Scripts/c35614780.lua1
Flower Cardian Willow with Calligrapher89818984Scripts/c89818984.lua1
Supreme King Dragon Lightwurm41908872Scripts/c41908872.lua1
Frightfur Meister77522571Scripts/c77522571.lua2
Duel Link Dragon, the Duel Dragon60025883Scripts/c60025883.lua2
Isolde, Two Tales of the Noble Knights59934749Scripts/c59934749.lua1
Super Duper Polymerization44886582Scripts/c44886582.lua1
Ecclesia and the Dark Dragon78397661Scripts/c78397661.lua1
Mixeroid71340250Scripts/c71340250.lua1
Cyberse Reminder56337500Scripts/c56337500.lua1
Number 101: Silent Honor ARK - Soul Asylum2419596Scripts/c2419596.lua2
XYZ-Hyper Dragon Cannon75748977Scripts/c75748977.lua1
Awakening of the Sacred Beasts53701259Scripts/c53701259.lua1
Seven Stars Slash - Army Annihilator Hagun65114115Scripts/c65114115.lua1
Ursarctic Quint Charge15758127Scripts/c15758127.lua1
Emperor Charles the Great97864322Scripts/c97864322.lua1
Miscellaneousaurus38572779Scripts/c38572779.lua1
World Legacy Monstrosity14604710Scripts/c14604710.lua3
Malefic Paradigm Dragon16958382Scripts/c16958382.lua1
...and 671 more

Script Examples ​

Lady's Dragonmaid (48658295) ​

Source: Scripts/c48658295.lua

lua
	if not c:IsFusionSetCard(0x133) then return false end
	if not sg then return true end
	return not sg:IsExists(Card.IsLevel,1,c,c:GetLevel())
		and sg:IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute())
end

Magnet Bonding (65514302) ​

Source: Scripts/c65514302.lua

lua
end
function s.thfilter2(c)
	return c:IsSetCard(0xe9) and c:IsLevel(8) and c:IsAbleToHand()
end
function s.filter1(c,e)

Dark End Evaporation Dragon (62002838) ​

Source: Scripts/c62002838.lua

lua
s.fusion_effect=true
function s.costfilter(c)
	return c:IsRace(RACE_DRAGON) and c:IsLevel(8) and c:IsAbleToRemoveAsCost()
end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)