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

fix bug#12410012+++

parent f1d48bad
......@@ -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)
end
end
function cm.r(c)
function cm.r(c,fc)
return c:GetOriginalRace()==RACE_MACHINE and c:IsAbleToGraveAsCost()
and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL)
end
function cm.con3(e,c)
if c==nil then return true end
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
function cm.op3(e,tp,eg,ep,ev,re,r,rp,c)
DUel.Hint(3,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.r,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil)
Duel.Hint(3,tp,HINTMSG_TOGRAVE)
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)
g:DeleteGroup()
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