Commit 82419f09 authored by GuGu's avatar GuGu

Update c17061220.lua 可以手融的八阿哥

parent 1ee136fe
Pipeline #17088 passed with stage
in 1 minute and 34 seconds
......@@ -27,7 +27,7 @@ function cm.mffilter0(c,e)
return c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e)
end
function cm.filter1(c,e)
return not c:IsImmuneToEffect(e)
return not c:IsImmuneToEffect(e) and c:IsOnField()
end
function cm.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_PENDULUM) and c:IsType(TYPE_FUSION) and (not f or f(c))
......@@ -36,7 +36,7 @@ end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp)
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
mg1:Merge(Duel.GetMatchingGroup(cm.mffilter0,tp,LOCATION_PZONE,0,nil,e))
local res=Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then
......
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