Skip to content

RushDuel.CostSendHandOrFieldToGrave ​

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

Signature ​

lua
RushDuel.CostSendHandOrFieldToGrave(any filter, any min, any max, any except_self, any set_label_before, any set_object_before, any set_label_after, any set_object_after) -> 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
代价: 把手卡·场上的卡送去墓地

Parameters ​

  • filter any: Type and behavior are not yet reviewed; see the source.
  • min any: Type and behavior are not yet reviewed; see the source.
  • max any: Type and behavior are not yet reviewed; see the source.
  • except_self any: Type and behavior are not yet reviewed; see the source.
  • set_label_before any: Type and behavior are not yet reviewed; see the source.
  • set_object_before any: Type and behavior are not yet reviewed; see the source.
  • set_label_after any: Type and behavior are not yet reviewed; see the source.
  • set_object_after 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/RDCost.lua:337

lua
function RushDuel.CostSendHandOrFieldToGrave(filter, min, max, except_self, set_label_before, set_object_before,
    set_label_after, set_object_after)
    return RushDuel.CostSendMatchToGrave(filter, LOCATION_HAND + LOCATION_ONFIELD, min, max, except_self, false, false,
        set_label_before, set_object_before, set_label_after, set_object_after)
end

Used By ​

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

  • Detected in 23 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CostSendHandOrFieldToGrave.
CardIDScriptDetected Calls
Freshberry Collaboration120301071Rush/Scripts/c120301071.lua1
Eria the Water Spiritualist120301010Rush/Scripts/c120301010.lua1
Tama Tama Gachance120109053Rush/Scripts/c120109053.lua1
Swarming Basic Insect120298040Rush/Scripts/c120298040.lua1
The Secret of Manifestation120257051Rush/Scripts/c120257051.lua1
Vic Viper Spread Bomb120294025Rush/Scripts/c120294025.lua1
Jointech Arcscorpio120249006Rush/Scripts/c120249006.lua1
Loot from the Clad Dragondom120304051Rush/Scripts/c120304051.lua1
Aussa the Earth Spiritualist120301009Rush/Scripts/c120301009.lua1
Bandiva Duo the Elegy of the Wailing Winds120283027Rush/Scripts/c120283027.lua1
Freshberry Pleasure120264023Rush/Scripts/c120264023.lua1
Lovely Fereshte120300019Rush/Scripts/c120300019.lua1
Wynn the Wind Spiritualist120301012Rush/Scripts/c120301012.lua1
Freshberry Rich120264027Rush/Scripts/c120264027.lua1
Piping Hot Delivery120290045Rush/Scripts/c120290045.lua1
Freshberry Happiness Harvest120264022Rush/Scripts/c120264022.lua1
Glacies the Snowmeister of Sacred Splendor120253034Rush/Scripts/c120253034.lua1
Sparkhearts Passion Girl120298018Rush/Scripts/c120298018.lua1
Hiita the Fire Spiritualist120301011Rush/Scripts/c120301011.lua1
Freshberry Smart120264024Rush/Scripts/c120264024.lua1
Freshberry Cure120264025Rush/Scripts/c120264025.lua1
Freshberry Chesty120272028Rush/Scripts/c120272028.lua1
Sparkhearts Passion Anesh120298019Rush/Scripts/c120298019.lua1

Script Examples ​

Freshberry Collaboration (120301071) ​

Source: Rush/Scripts/c120301071.lua

lua
	return c:IsFaceup() and not c:IsType(TYPE_MAXIMUM) and c:IsLevelBelow(10)
end
cm.cost=RD.CostSendHandOrFieldToGrave(Card.IsAbleToGraveAsCost,1,1,true,nil,nil,function(g)
	local c=g:GetFirst()
	if c:IsAttribute(ATTRIBUTE_WATER) and c:IsRace(RACE_AQUA) then

Eria the Water Spiritualist (120301010) ​

Source: Rush/Scripts/c120301010.lua

lua
	return RD.IsSummonOrSpecialSummonMainPhase(e:GetHandler())
end
cm.cost=RD.CostSendHandOrFieldToGrave(cm.costfilter,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_GRAVE,1,nil) end

Tama Tama Gachance (120109053) ​

Source: Rush/Scripts/c120109053.lua

lua
	return ct==1 or g:FilterCount(Card.IsCode,nil,list[1])==ct
end
cm.cost=RD.CostSendHandOrFieldToGrave(cm.costfilter,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end