Skip to content

RushDuel.IsCanChangeCode ​

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

Signature ​

lua
RushDuel.IsCanChangeCode(any card, any code) -> any

Description ​

Rush Duel helper declared in RDCondition.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.
  • code 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/RDCondition.lua:118

lua
function RushDuel.IsCanChangeCode(card, code)
    return not card:IsCode(code)
end

Used By ​

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

  • Detected in 59 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsCanChangeCode.
CardIDScriptDetected Calls
Red-Eyes Mars Dragon120306034Rush/Scripts/c120306034.lua1
Botonaginata the Music Princess120290009Rush/Scripts/c120290009.lua1
Soleil, the Fairy of Skysavior120235020Rush/Scripts/c120235020.lua1
Harpie Lady Feather Duster120279002Rush/Scripts/c120279002.lua1
Lua, the Fairy of Skysavior120235021Rush/Scripts/c120235021.lua1
Imaginary Leading Actor120271029Rush/Scripts/c120271029.lua1
Battletested Curse of Dragon120249031Rush/Scripts/c120249031.lua1
Voidvelg Whiterider120109060Rush/Scripts/c120109060.lua1
Voidalfr Buprestruve120300003Rush/Scripts/c120300003.lua1
Blue-Eyes Vision Dragon120252004Rush/Scripts/c120252004.lua1
Vic Viper Beginning120294026Rush/Scripts/c120294026.lua1
Battletested Gaia The Fierce Knight120249032Rush/Scripts/c120249032.lua1
Cyber Processor120244021Rush/Scripts/c120244021.lua1
Skull Archfiend of Confusion120277023Rush/Scripts/c120277023.lua1
The Swordsman Who Doles Out Victory120290023Rush/Scripts/c120290023.lua1
Enceladustellime120304003Rush/Scripts/c120304003.lua1
Vic Viper Spread Bomb120294025Rush/Scripts/c120294025.lua1
Etraynze the Sprinting Shadow Flower Ninja120285012Rush/Scripts/c120285012.lua1
The Draco120294002Rush/Scripts/c120294002.lua1
Resurrection Heliacal Riser120304039Rush/Scripts/c120304039.lua1
X-Trial Cannon120305008Rush/Scripts/c120305008.lua1
Cyber Dragon Nachster120278009Rush/Scripts/c120278009.lua1
Special Operative Flavor Inspector120300017Rush/Scripts/c120300017.lua1
Super-Dimensional Lord British Space Fighter120294065Rush/Scripts/c120294065.lua1
...and 35 more

Script Examples ​

Red-Eyes Mars Dragon (120306034) ​

Source: Rush/Scripts/c120306034.lua

lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return RD.IsCanChangeCode(e:GetHandler(),list[1])
end
cm.cost=RD.CostSendDeckTopToGrave(1)

Botonaginata the Music Princess (120290009) ​

Source: Rush/Scripts/c120290009.lua

lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return RD.IsCanChangeCode(e:GetHandler(),list[1])
end
cm.cost=RD.CostSendHandToGrave(Card.IsAbleToGraveAsCost,1,1)

Soleil, the Fairy of Skysavior (120235020) ​

Source: Rush/Scripts/c120235020.lua

lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return RD.IsCanChangeCode(e:GetHandler(),list[1])
end
cm.cost=RD.CostShowHand(cm.costfilter,1,1)