Skip to content

RushDuel.IsDefenseBelow ​

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

Signature ​

lua
RushDuel.IsDefenseBelow(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:99

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

Used By ​

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

  • Detected in 12 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsDefenseBelow.
CardIDScriptDetected Calls
Soul Flip120301055Rush/Scripts/c120301055.lua1
Mezame the Ringing Alarm120199015Rush/Scripts/c120199015.lua1
Healthie Sati120306024Rush/Scripts/c120306024.lua1
Seyanen the Blazing Conqueror120246050Rush/Scripts/c120246050.lua1
Ancient Arise Dragon120145024Rush/Scripts/c120145024.lua1
Jointech Stegosilos120231044Rush/Scripts/c120231044.lua1
Makiu, the Magical Mist120205058Rush/Scripts/c120205058.lua1
Yokai Tiger Orient Strike120222057Rush/Scripts/c120222057.lua1
Animagica Leader120260074Rush/Scripts/c120260074.lua1
Speed Major120301057Rush/Scripts/c120301057.lua1
Mormolith120285027Rush/Scripts/c120285027.lua1
Magical Sevens Fusion120285050Rush/Scripts/c120285050.lua1

Script Examples ​

Soul Flip (120301055) ​

Source: Rush/Scripts/c120301055.lua

lua
--Activate
function cm.confilter(c,tp)
	return c:GetSummonPlayer()==tp and c:IsLevelBelow(4) and RD.IsDefenseBelow(c,1400)
end
function cm.exfilter(c)

Mezame the Ringing Alarm (120199015) ​

Source: Rush/Scripts/c120199015.lua

lua
end
function cm.atktg(e,c)
	return RD.IsDefenseBelow(c,1900)
end

Healthie Sati (120306024) ​

Source: Rush/Scripts/c120306024.lua

lua
--Special Summon
function cm.spfilter(c,e,tp)
	return RD.IsDefenseBelow(c,1300) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP_DEFENSE)
end
function cm.posfilter(c,e,tp)