Commit 58067e7c authored by 未闻皂名's avatar 未闻皂名

2023/6/11 新增:乐姬的葬奏曲;融合召唤时,确认非公开卡片

parent 73038cd6
No preview for this file type
......@@ -22,6 +22,9 @@ end
function RushDuel.FusionSpecialSummonFilter(c, e, tp, m, f, chkf, filter)
return c:IsType(TYPE_FUSION) and (not filter or filter(c)) and (not f or f(c)) and c:IsCanBeSpecialSummoned(e, SUMMON_TYPE_FUSION, tp, false, false) and c:CheckFusionMaterial(m, nil, chkf)
end
function RushDuel.ConfirmCardFilter(c)
return c:IsLocation(LOCATION_HAND) or (c:IsLocation(LOCATION_MZONE) and c:IsFacedown())
end
function RushDuel.FusionTarget(matfilter, spfilter, exfilter, s_range, o_range, mat_check, action)
return function(e, tp, eg, ep, ev, re, r, rp, chk)
if chk == 0 then
......@@ -83,6 +86,10 @@ function RushDuel.FusionOperation(matfilter, spfilter, exfilter, s_range, o_rang
if sg1:IsContains(fc) and (sg2 == nil or not sg2:IsContains(fc) or not Duel.SelectYesNo(tp, ce:GetDescription())) then
mat = Duel.SelectFusionMaterial(tp, fc, mg1, nil, chkf)
fc:SetMaterial(mat)
local cg = mat:Filter(RushDuel.ConfirmCardFilter, nil)
if cg:GetCount() > 0 then
Duel.ConfirmCards(1 - tp, cg)
end
mat_move(mat)
Duel.BreakEffect()
Duel.SpecialSummon(fc, SUMMON_TYPE_FUSION, tp, tp, false, false, POS_FACEUP)
......
local m=120247033
local cm=_G["c"..m]
cm.name="乐姬的葬奏曲"
function cm.initial_effect(c)
--Activate
local e1=RD.CreateFusionEffect(c,cm.matfilter,cm.spfilter,cm.exfilter,LOCATION_GRAVE,0,nil,RD.FusionToDeck)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(cm.condition)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_WARRIOR)
end
function cm.matfilter(c)
return c:IsLocation(LOCATION_HAND) and c:IsAbleToDeck()
end
function cm.spfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_WARRIOR)
end
function cm.exfilter(c)
return c:IsAbleToDeck()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_GRAVE,0,5,nil)
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment