Commit 80e888ae authored by fallenstardust's avatar fallenstardust

fix LEDE-JP056 script

parent b384e2e1
Pipeline #24344 passed with stages
in 39 seconds
...@@ -25,7 +25,7 @@ function c101204056.filter0(c,e) ...@@ -25,7 +25,7 @@ function c101204056.filter0(c,e)
return c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e) return c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e)
end end
function c101204056.filter1(c,e) function c101204056.filter1(c,e)
return c:IsOnField() and not c:IsImmuneToEffect(e) return not c:IsImmuneToEffect(e)
end end
function c101204056.filter2(c,e,tp,m,f,chkf) function c101204056.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and c:IsRace(RACE_FAIRY) and (not f or f(c)) return c:IsType(TYPE_FUSION) and c:IsRace(RACE_FAIRY) and (not f or f(c))
...@@ -34,7 +34,7 @@ end ...@@ -34,7 +34,7 @@ end
function c101204056.target(e,tp,eg,ep,ev,re,r,rp,chk) function c101204056.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil) local mg1=Duel.GetFusionMaterial(tp)
mg1:Merge(Duel.GetMatchingGroup(c101204056.filter0,tp,LOCATION_PZONE,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(c101204056.filter0,tp,LOCATION_PZONE,0,nil,e))
local res=Duel.IsExistingMatchingCard(c101204056.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c101204056.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then 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