Skip to content

Card.IsRank ​

Signature ​

lua
Card.IsRank(Card c, int rank1, [int rank2], [... int]) -> bool

Description ​

Checks whether c:GetRank() equals any supplied rank value. Nil rank arguments are skipped. The binding compares the numeric Rank directly; it does not separately require c to be an Xyz Monster, so non-Xyz cards compare as Rank 0.

Parameters ​

  • c Card
  • rank1 int
  • rank2 int optional
  • ... int optional

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 109 indexed script(s).
  • Search this function in the Script Explorer with Card.IsRank.
CardIDScriptDetected Calls
Resurgam Xyz49082032Scripts/c49082032.lua1
Power Patron DoomZ81650695Scripts/c81650695.lua1
Rank-Up-Magic Astral Force45950291Scripts/c45950291.lua1
The Phantom Knights' Rank-Up-Magic Requiem62104532Scripts/c62104532.lua1
DoomZ XII Zero - Drastea92472273Scripts/c92472273.lua1
Exosisters Magnifica59242457Scripts/c59242457.lua1
Odd-Eyes Rebellion Dragon Overlord98452268Scripts/c98452268.lua1
Purrely Sharely!?10780049Scripts/c10780049.lua1
Purrelyeap!?82983267Scripts/c82983267.lua1
Raider's Knight28781003Scripts/c28781003.lua1
Rank-Up-Magic Zexal Force36224040Scripts/c36224040.lua1
Rank-Up-Magic Numeron Force48333324Scripts/c48333324.lua1
Number 93: Utopia Kaiser23187256Scripts/c23187256.lua1
The Phantom Knights' Rank-Up-Magic Launch3298689Scripts/c3298689.lua1
K9-LC Release Restraint27308231Scripts/c27308231.lua1
Disaster, Dragon Ruler of All Apocalypses67359907Scripts/c67359907.lua1
Shichi-Go-San11035075Scripts/c11035075.lua1
V Umbral Horror39053882Scripts/c39053882.lua1
Eclipse, Dragon Ruler of Catastrophes30350202Scripts/c30350202.lua1
Dark Rebellion Xyz Dragon of the Four Heavenly Dragons90091224Scripts/c90091224.lua1
Rank-Up-Magic Argent Chaos Force94220427Scripts/c94220427.lua1
Raise Moon Wings Rapi47828069Scripts/c47828069.lua1
Tellarknight Ptolemaeus18326736Scripts/c18326736.lua1
Xyz Revive Splash32764863Scripts/c32764863.lua1
...and 85 more

Script Examples ​

Resurgam Xyz (49082032) ​

Source: Scripts/c49082032.lua

lua
end
function c49082032.spfilter2(c,e,tp,mc,race,rk)
	return c:IsRace(race) and c:IsRank(rk) and c:IsSetCard(0x1048,0x1073) and mc:IsCanBeXyzMaterial(c)
		and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end

Power Patron DoomZ (81650695) ​

Source: Scripts/c81650695.lua

lua
end
function s.spfilter(c,e,tp,mc)
	return c:IsRank(mc:GetLevel()) and (c:IsSetCard(0x1d2) or c:IsCode(68231287)) and c:IsAllTypes(TYPE_XYZ+TYPE_MONSTER)
		and mc:IsCanBeXyzMaterial(c) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false)
		and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0

Rank-Up-Magic Astral Force (45950291) ​

Source: Scripts/c45950291.lua

lua
function c45950291.filter2(c,e,tp,mc,rk,rc,att,code)
	if c:GetOriginalCode()==6165656 and code~=48995978 then return false end
	return c:IsRank(rk) and c:IsRace(rc) and c:IsAttribute(att) and mc:IsCanBeXyzMaterial(c)
		and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false)
		and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0