Skip to content

RushDuel.IsLPBelowOpponent ​

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

Signature ​

lua
RushDuel.IsLPBelowOpponent(any player, any lp) -> 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
条件: 玩家的LP比对方少 lp 以上

Parameters ​

  • player any: Type and behavior are not yet reviewed; see the source.
  • lp 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:69

lua
function RushDuel.IsLPBelowOpponent(player, lp)
    return Duel.GetLP(player) <= Duel.GetLP(1 - player) - (lp or 0)
end

Used By ​

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

  • Detected in 19 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsLPBelowOpponent.
CardIDScriptDetected Calls
Supreme Machine Magnum Overlord [L]120150001Rush/Scripts/c120150001.lua1
CAN - Melo:D120203010Rush/Scripts/c120203010.lua1
Art Angel Metal Position120228014Rush/Scripts/c120228014.lua1
Sneezing Greedizauls120151008Rush/Scripts/c120151008.lua1
Cosmic Sucker120294021Rush/Scripts/c120294021.lua1
Fiery Infernleon120205019Rush/Scripts/c120205019.lua1
Dian Keto the Cleaning Prodigy120260065Rush/Scripts/c120260065.lua1
300 Light Year Red Cape120222051Rush/Scripts/c120222051.lua1
Requiem Strike Back120277060Rush/Scripts/c120277060.lua1
Romanpick120130023Rush/Scripts/c120130023.lua1
The Perfect Dragiastar120283026Rush/Scripts/c120283026.lua1
Metal Megaleon120205020Rush/Scripts/c120205020.lua1
Telepathic Agent120140030Rush/Scripts/c120140030.lua1
Light and Flame120249054Rush/Scripts/c120249054.lua1
Tribute Lock120213028Rush/Scripts/c120213028.lua1
Inside Out Roll120151044Rush/Scripts/c120151044.lua1
My Patience Has Run Out!120246067Rush/Scripts/c120246067.lua1
Supreme Marine Fortress Magnum Overbase120199042Rush/Scripts/c120199042.lua1
Folder Blitz the Infinite Dream120140028Rush/Scripts/c120140028.lua1

Script Examples ​

Supreme Machine Magnum Overlord [L] (120150001) ​

Source: Rush/Scripts/c120150001.lua

lua
--Atk Up
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return RD.MaximumMode(e) and RD.IsLPBelowOpponent(tp,1)
end
cm.cost=RD.CostSendHandToGrave(Card.IsAbleToGraveAsCost,1,1)

CAN - Melo:D (120203010) ​

Source: Rush/Scripts/c120203010.lua

lua
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	RD.SelectAndDoAction(HINTMSG_TODECK,cm.tdfilter,tp,0,LOCATION_ONFIELD,1,1,nil,function(g)
		if RD.SendToDeckAndExists(g,e,tp,REASON_EFFECT) and RD.IsLPBelowOpponent(tp,1) then
			RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(sg)
				RD.SendToHandAndExists(sg,e,tp,REASON_EFFECT)

Art Angel Metal Position (120228014) ​

Source: Rush/Scripts/c120228014.lua

lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return RD.IsLPBelowOpponent(tp,1)
end
cm.cost=RD.CostSendMZoneToGrave(cm.costfilter,1,1,true)