RushDuel.IsCanFusionSummon
Alias: RD.IsCanFusionSummon. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.IsCanFusionSummon(any e, any tp, any pos, any matfilter, any spfilter, any exfilter, any s_range, any o_range, any mat_check, any including_self, any self_leave, any except) -> boolDescription
Checks whether a Fusion candidate and legal material selection exist, including the material-group and zone restriction. This predicate does not open the monster/material selection prompts. Advanced helper used by CreateFusionEffect: pass explicit location masks and the remaining builder arguments. The factory normalizes optional inputs for ordinary card scripts; calling this lower-level function with omitted location arguments is not equivalent.
Parameters
eany: Type and behavior are not yet reviewed; see the source.tpany: Type and behavior are not yet reviewed; see the source.posany: Type and behavior are not yet reviewed; see the source.matfilterany: Type and behavior are not yet reviewed; see the source.spfilterany: Type and behavior are not yet reviewed; see the source.exfilterany: Type and behavior are not yet reviewed; see the source.s_rangeany: Type and behavior are not yet reviewed; see the source.o_rangeany: Type and behavior are not yet reviewed; see the source.mat_checkany: Type and behavior are not yet reviewed; see the source.including_selfany: Type and behavior are not yet reviewed; see the source.self_leaveany: Type and behavior are not yet reviewed; see the source.exceptany: Type and behavior are not yet reviewed; see the source.
Returns
bool: Whether at least one supported summon route exists.
Source
Rush/Utilities/RDFusion.lua:528
lua
function RushDuel.IsCanFusionSummon(e, tp, pos, matfilter, spfilter, exfilter, s_range, o_range, mat_check, including_self, self_leave, except)
RushDuel.FusionExtraChecker = RushDuel.FusionCheckLocation(e, self_leave, mat_check)
local fusionable = RushDuel.GetFusionSummonData(e, tp, pos, matfilter, spfilter, exfilter, s_range, o_range, including_self, self_leave, except)
RushDuel.FusionExtraChecker = nil
return fusionable
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 2 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.IsCanFusionSummon.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Void Dust Fusion | 120277052 | Rush/Scripts/c120277052.lua | 1 |
| Darkness Dwarf | 120253003 | Rush/Scripts/c120253003.lua | 1 |
Script Examples
Void Dust Fusion (120277052)
Source: Rush/Scripts/c120277052.lua
lua
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY) and c:IsType(TYPE_NORMAL)
and c:IsAbleToDeckOrExtraAsCost()
and RD.IsCanFusionSummon(e,tp,POS_FACEUP,aux.FALSE,cm.spfilter,cm.matfilter,LOCATION_GRAVE,0,cm.matcheck,false,false,c)
end
function cm.matfilter(c)Darkness Dwarf (120253003)
Source: Rush/Scripts/c120253003.lua
lua
function cm.costfilter(c,e,tp)
return c:IsFaceup() and c:IsRace(RACE_GALAXY) and c:IsAbleToGraveAsCost()
and RD.IsCanFusionSummon(e,tp,POS_FACEUP,cm.matfilter,cm.spfilter,nil,0,0,nil,true,false,c)
end
cm.cost=RD.CostSendMZoneToGrave(cm.costfilter,1,1,true)