Skip to content

RushDuel.IsLegendCard ​

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

Signature ​

lua
RushDuel.IsLegendCard(Card card) -> bool

Description ​

Checks TYPE_LEGEND or an EFFECT_LEGEND_CARD marker. This supports both the printed Rush Legend bit and effect-based Legend treatment.

Parameters ​

  • card Card: Card to inspect.

Returns ​

  • bool: Whether the card is treated as Legend.

Source ​

Rush/Utilities/RDLegend.lua:26

lua
function RushDuel.IsLegendCard(card)
    return card:IsType(TYPE_LEGEND) or card:IsHasEffect(EFFECT_LEGEND_CARD) ~= nil
end

Used By ​

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

  • Detected in 34 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsLegendCard.
CardIDScriptDetected Calls
Red-Eyes Mars Dragon120306034Rush/Scripts/c120306034.lua1
Udzue the Frost-Purifying Purebreed120296001Rush/Scripts/c120296001.lua1
Fate of the World120271054Rush/Scripts/c120271054.lua1
Legendary Saber120238010Rush/Scripts/c120238010.lua1
Legendary Hunter120271046Rush/Scripts/c120271046.lua1
Legendary Scout120271047Rush/Scripts/c120271047.lua2
Legendary Shooter120271045Rush/Scripts/c120271045.lua1
Skysavior Aspiration120301051Rush/Scripts/c120301051.lua1
Master Craftsman Kotetsu120238036Rush/Scripts/c120238036.lua1
Blue-Eyes Bright Dragon120252003Rush/Scripts/c120252003.lua1
Dark Magician of Chaos120307001Rush/Scripts/c120307001.lua1
Reminiscence of the Epic Tale120272054Rush/Scripts/c120272054.lua1
Legendary Strike120249057Rush/Scripts/c120249057.lua2
Malevolent Seller120238040Rush/Scripts/c120238040.lua1
Dark Paladin120283002Rush/Scripts/c120283002.lua1
Grand Legendar Saber Spirit120293067Rush/Scripts/c120293067.lua1
Yabume the Frost-Purifying Purebreed120298045Rush/Scripts/c120298045.lua1
Commanding Ritzy King Rex120290010Rush/Scripts/c120290010.lua1
Grand Legendary Party120309060Rush/Scripts/c120309060.lua2
Legendary Sparkseed120271061Rush/Scripts/c120271061.lua1
Legendary Magician120238005Rush/Scripts/c120238005.lua1
Grand Legendary Saber120271041Rush/Scripts/c120271041.lua2
Grand Legendary Magician120271042Rush/Scripts/c120271042.lua1
Legendary Priest120271044Rush/Scripts/c120271044.lua1
...and 10 more

Script Examples ​

Red-Eyes Mars Dragon (120306034) ​

Source: Rush/Scripts/c120306034.lua

lua
--Change Code
function cm.exfilter(c)
	return RD.IsLegendCard(c) and c:IsType(TYPE_NORMAL)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)

Udzue the Frost-Purifying Purebreed (120296001) ​

Source: Rush/Scripts/c120296001.lua

lua
--To Hand
function cm.thfilter(c)
	return not RD.IsLegendCard(c) and c:GetType()==TYPE_TRAP and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)

Fate of the World (120271054) ​

Source: Rush/Scripts/c120271054.lua

lua
end
function cm.costfilter(c)
	return RD.IsLegendCard(c) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeckAsCost()
end
function cm.filter(c)