Skip to content

RushDuel.IsLegendCode ​

Alias: RD.IsLegendCode. Requires the matching Rush Duel Lua bootstrap.

Signature ​

lua
RushDuel.IsLegendCode(any card, ... any) -> any

Description ​

Rush Duel helper declared in RDLegend.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
条件: 是否为传说卡的卡名

Parameters ​

  • card any: Type and behavior are not yet reviewed; see the source.
  • ... any: Type and behavior are not yet reviewed; see the source.

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDLegend.lua:31

lua
function RushDuel.IsLegendCode(card, ...)
    return card:IsCode(table.unpack({...}))
end

Used By ​

Generated from the local Rush/Scripts/ folder and rush_cards.cdb.

  • Detected in 54 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsLegendCode.
CardIDScriptDetected Calls
The Eye of Timaeus120285065Rush/Scripts/c120285065.lua2
Jinzo the Machine Menace120257028Rush/Scripts/c120257028.lua1
Fusionic Revivern120109030Rush/Scripts/c120109030.lua1
Treasure of Eyes of Blue120252035Rush/Scripts/c120252035.lua1
Masenkou, the Lashing Light120238044Rush/Scripts/c120238044.lua1
The Swordsman Who Doles Out Victory120290023Rush/Scripts/c120290023.lua1
Maraimei, the Igniting Inferno120170063Rush/Scripts/c120170063.lua1
Jointech Arcscorpio120249006Rush/Scripts/c120249006.lua1
Unfulfilled Goblin120203039Rush/Scripts/c120203039.lua1
Imaginary Reactor120271025Rush/Scripts/c120271025.lua1
Voidvelg Apocalypse120231047Rush/Scripts/c120231047.lua1
Black Dragon's Roar120203053Rush/Scripts/c120203053.lua1
Hyper Ritzy King Rex120196037Rush/Scripts/c120196037.lua1
Progress Potter120217035Rush/Scripts/c120217035.lua1
Malevolent Seller120238040Rush/Scripts/c120238040.lua1
Sword & Shield120155052Rush/Scripts/c120155052.lua1
Shield in the Right Hand120246048Rush/Scripts/c120246048.lua2
Makiu, the Magical Mist120205058Rush/Scripts/c120205058.lua1
Dark Magician's Curtain120238012Rush/Scripts/c120238012.lua1
Archfiend's Revival120170062Rush/Scripts/c120170062.lua1
Upgrade Goblin120151048Rush/Scripts/c120151048.lua1
Engine of Destruction120254021Rush/Scripts/c120254021.lua1
Voidvelg Protostar120235033Rush/Scripts/c120235033.lua1
Wizened Dark Magician120246082Rush/Scripts/c120246082.lua1
...and 30 more

Script Examples ​

The Eye of Timaeus (120285065) ​

Source: Rush/Scripts/c120285065.lua

lua
--Activate
function cm.matfilter1(c,e,tp)
	return c:IsFaceup() and RD.IsLegendCode(c,list[2]) and c:IsCanBeFusionMaterial()
		and not c:IsImmuneToEffect(e) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_FMATERIAL)
end

Jinzo the Machine Menace (120257028) ​

Source: Rush/Scripts/c120257028.lua

lua
--Special Summon
function cm.spfilter(c,e,tp)
	return RD.IsLegendCode(c,list[1]) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP)
end
function cm.exfilter(c)

Fusionic Revivern (120109030) ​

Source: Rush/Scripts/c120109030.lua

lua
end
function cm.thfilter(c)
	return (c:IsCode(list[1]) or RD.IsLegendCode(c,list[2])) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)