Skip to content

RushDuel.IsBaseDefense ​

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

Signature ​

lua
RushDuel.IsBaseDefense(any card, any def) -> 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
条件: 原本守备力为 def

Parameters ​

  • card any: Type and behavior are not yet reviewed; see the source.
  • def 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:103

lua
function RushDuel.IsBaseDefense(card, def)
    return card:GetBaseDefense() == def and not RushDuel.IsMaximumMode(card)
end

Used By ​

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

  • Detected in 20 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsBaseDefense.
CardIDScriptDetected Calls
Handy Girl120290012Rush/Scripts/c120290012.lua1
Vic Viper Spread Bomb120294025Rush/Scripts/c120294025.lua1
Lovely Connect120300054Rush/Scripts/c120300054.lua1
Super-Dimensional Lord British Space Fighter120294065Rush/Scripts/c120294065.lua1
Lovely Blessing120260051Rush/Scripts/c120260051.lua1
First Cat Search120290046Rush/Scripts/c120290046.lua1
Piping Hot Delivery120290045Rush/Scripts/c120290045.lua1
Gradius' Option120294023Rush/Scripts/c120294023.lua1
Power Capsule Red120294056Rush/Scripts/c120294056.lua1
Power Capsule Blue120294055Rush/Scripts/c120294055.lua1
Plus Skull120261040Rush/Scripts/c120261040.lua1
Legendary Party120309061Rush/Scripts/c120309061.lua1
Lovely Return120260055Rush/Scripts/c120260055.lua1
Home of the Charmers120301021Rush/Scripts/c120301021.lua2
Healthie Lamilla120306021Rush/Scripts/c120306021.lua1
The Sounds of a Piano Heard After School120306008Rush/Scripts/c120306008.lua1
Dark Battle Grounds120249053Rush/Scripts/c120249053.lua1
The Emperor Realm120244056Rush/Scripts/c120244056.lua1
Cheerful Waitress120290016Rush/Scripts/c120290016.lua1
Freshberry Garden120264057Rush/Scripts/c120264057.lua1

Script Examples ​

Handy Girl (120290012) ​

Source: Rush/Scripts/c120290012.lua

lua
end
function cm.matfilter(c)
	return RD.IsBaseDefense(c,1200) and c:IsFusionAttribute(ATTRIBUTE_WIND)
end
cm.cost=RD.CostSendHandToDeckBottom(Card.IsAbleToDeckAsCost,1,1,false)

Vic Viper Spread Bomb (120294025) ​

Source: Rush/Scripts/c120294025.lua

lua
end
function cm.atktg(e,c)
	return not (RD.IsBaseDefense(c,800) and c:IsRace(RACE_MACHINE))
end

Lovely Connect (120300054) ​

Source: Rush/Scripts/c120300054.lua

lua
function cm.exfilter(c)
	return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FAIRY)
		and c:GetBaseAttack()==0 and RD.IsBaseDefense(c,0)
end
function cm.tdfilter(c)