Commit 12427cff authored by 花桃白音's avatar 花桃白音

fix bug#12410012+++

parent f1d48bad
Pipeline #32825 passed with stages
in 63 minutes and 3 seconds
...@@ -88,17 +88,19 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,17 +88,19 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function cm.r(c) function cm.r(c,fc)
return c:GetOriginalRace()==RACE_MACHINE and c:IsAbleToGraveAsCost() return c:GetOriginalRace()==RACE_MACHINE and c:IsAbleToGraveAsCost()
and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL)
end end
function cm.con3(e,c) function cm.con3(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.IsExistingMatchingCard(cm.r,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(cm.r,tp,LOCATION_HAND+LOCATION_MZONE,0,2,nil,c)
end end
function cm.op3(e,tp,eg,ep,ev,re,r,rp,c) function cm.op3(e,tp,eg,ep,ev,re,r,rp,c)
DUel.Hint(3,tp,HINTMSG_TOGRAVE) Duel.Hint(3,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.r,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.r,tp,LOCATION_HAND+LOCATION_MZONE,0,2,2,nil)
e:GetHandler():SetMaterial(g)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
g:DeleteGroup() g:DeleteGroup()
end end
......
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