Skip to content

RushDuel.IsSameCode ​

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

Signature ​

lua
RushDuel.IsSameCode(any card1, any card2) -> 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 ​

  • card1 any: Type and behavior are not yet reviewed; see the source.
  • card2 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:36

lua
function RushDuel.IsSameCode(card1, card2)
    return card1:IsCode(card2:GetCode())
end

Used By ​

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

  • Detected in 6 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsSameCode.
CardIDScriptDetected Calls
The Dragiastar120235035Rush/Scripts/c120235035.lua2
Back To The Fusion120235047Rush/Scripts/c120235047.lua2
Dragon Double-Doom120235060Rush/Scripts/c120235060.lua1
Sea Dragon Knight120199032Rush/Scripts/c120199032.lua1
The Copy120235046Rush/Scripts/c120235046.lua1
Bislasher120235048Rush/Scripts/c120235048.lua1

Script Examples ​

The Dragiastar (120235035) ​

Source: Rush/Scripts/c120235035.lua

lua
end
function cm.confilter2(c,tc)
	return c:IsType(TYPE_NORMAL) and RD.IsSameCode(c,tc)
end
function cm.check(g)

Back To The Fusion (120235047) ​

Source: Rush/Scripts/c120235047.lua

lua
end
function cm.exfilter(c,tc)
	return c:IsType(TYPE_NORMAL) and RD.IsSameCode(c,tc)
end
function cm.check(g)

Dragon Double-Doom (120235060) ​

Source: Rush/Scripts/c120235060.lua

lua
end
function cm.check(g)
	return g:GetCount()==2 and RD.IsSameCode(g:GetFirst(),g:GetNext())
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)