Skip to content

RushDuel.CostSendSelfToGrave ​

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

Signature ​

lua
RushDuel.CostSendSelfToGrave() -> any

Description ​

Rush Duel helper declared in RDCost.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
代价: 把自己场上表侧表示的这张卡送去墓地

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDCost.lua:289

lua
function RushDuel.CostSendSelfToGrave()
    return function(e, tp, eg, ep, ev, re, r, rp, chk)
        if chk == 0 then
            return e:GetHandler():IsAbleToGraveAsCost()
        end
        Duel.SendtoGrave(RushDuel.ToMaximunGroup(e:GetHandler()), REASON_COST)
        return true
    end
end

Used By ​

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

  • Detected in 55 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CostSendSelfToGrave.
CardIDScriptDetected Calls
Jinzo the Machine Menace120257028Rush/Scripts/c120257028.lua1
Galactica Dejavu120244003Rush/Scripts/c120244003.lua1
Plasmatic Model Tool Ceto120301069Rush/Scripts/c120301069.lua1
Fusionic Revivern120109030Rush/Scripts/c120109030.lua1
Ice Age Pounder120304027Rush/Scripts/c120304027.lua1
Rescue Cat120307008Rush/Scripts/c120307008.lua1
Grand Legendary Priest120271043Rush/Scripts/c120271043.lua1
The Ultimate Flag120294019Rush/Scripts/c120294019.lua1
Supreme Skystream Magnum Overlord120151002Rush/Scripts/c120151002.lua1
Surtr the Brilliant Magical Sword120306100Rush/Scripts/c120306100.lua1
Familiar of the Earth Spiritualist120301013Rush/Scripts/c120301013.lua1
Familiar of the Water Spiritualist120301014Rush/Scripts/c120301014.lua1
Familiar of the Fire Spiritualist120301015Rush/Scripts/c120301015.lua1
Familiar of the Wind Spiritualist120301016Rush/Scripts/c120301016.lua1
Mr. Alchemy120196020Rush/Scripts/c120196020.lua1
Striping Wyvern120253005Rush/Scripts/c120253005.lua1
Valkyrion the Unity Warrior120260025Rush/Scripts/c120260025.lua1
Ember the Hyper Assistant120249014Rush/Scripts/c120249014.lua1
Unfulfilled Goblin120203039Rush/Scripts/c120203039.lua1
Meinir the Defiant Soulclad Spirit120298009Rush/Scripts/c120298009.lua1
Shining Shamaness120254082Rush/Scripts/c120254082.lua1
Contact Dark Matter Omega Voyager120264002Rush/Scripts/c120264002.lua1
Voidvelg Meteon120227018Rush/Scripts/c120227018.lua1
Reporter Raccoon120199029Rush/Scripts/c120199029.lua1
...and 31 more

Script Examples ​

Jinzo the Machine Menace (120257028) ​

Source: Rush/Scripts/c120257028.lua

lua
	return c:IsFacedown() and c:GetSequence()<5
end
cm.cost=RD.CostSendSelfToGrave()
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0

Galactica Dejavu (120244003) ​

Source: Rush/Scripts/c120244003.lua

lua
	return RD.IsLPAbove(1-tp,4000)
end
cm.cost=RD.CostSendSelfToGrave()
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end

Plasmatic Model Tool Ceto (120301069) ​

Source: Rush/Scripts/c120301069.lua

lua
	return c:IsCode(list[1]) and c:IsAbleToHand()
end
cm.cost=RD.CostSendSelfToGrave()
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)