Skip to content

RushDuel.IsDefenseAbove ​

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

Signature ​

lua
RushDuel.IsDefenseAbove(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:95

lua
function RushDuel.IsDefenseAbove(card, def)
    return card:IsDefenseAbove(def) and not RushDuel.IsMaximumMode(card)
end

Used By ​

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

  • Detected in 10 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsDefenseAbove.
CardIDScriptDetected Calls
Sword Skill - Ruler's Slash120208046Rush/Scripts/c120208046.lua1
Animagica Coin120277056Rush/Scripts/c120277056.lua1
Animagica Gardna120277027Rush/Scripts/c120277027.lua1
Light-Calling Griffore120280008Rush/Scripts/c120280008.lua1
Void Dust Fusion120277052Rush/Scripts/c120277052.lua1
Defense Destroying Sword120208047Rush/Scripts/c120208047.lua1
Scarechair Code120260072Rush/Scripts/c120260072.lua1
Long Shield Gardna120145037Rush/Scripts/c120145037.lua1
All-Seeing Harvey120249040Rush/Scripts/c120249040.lua1
Dark Ruler Tempest120183042Rush/Scripts/c120183042.lua1

Script Examples ​

Sword Skill - Ruler's Slash (120208046) ​

Source: Rush/Scripts/c120208046.lua

lua
end
function cm.filter(c)
	return c:IsFaceup() and c:IsAttackAbove(2500) and RD.IsDefenseAbove(c,2500)
end
function cm.desfilter(c)

Animagica Coin (120277056) ​

Source: Rush/Scripts/c120277056.lua

lua
function cm.thfilter(c)
	return c:IsLevel(7,8) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_BEAST)
		and RD.IsDefenseAbove(c,1500) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)

Animagica Gardna (120277027) ​

Source: Rush/Scripts/c120277027.lua

lua
function cm.thfilter(c)
	return c:IsLevel(7,8) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_BEAST)
		and RD.IsDefenseAbove(c,1500) and c:IsAbleToHand()
end
cm.cost=RD.CostSendHandToGrave(Card.IsAbleToGraveAsCost,1,1)