Commit 3e7f1963 authored by Huangnan's avatar Huangnan

fix

parent 5e7b7fc8
Pipeline #40258 failed with stages
in 2 minutes and 10 seconds
No preview for this file type
...@@ -48,7 +48,6 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,6 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
if preatk~=0 and tc:IsAttack(0) then dg:AddCard(tc) end if preatk~=0 and tc:IsAttack(0) then dg:AddCard(tc) end
tc=g:GetNext()
end end
Duel.SendtoGrave(dg,REASON_EFFECT) Duel.SendtoGrave(dg,REASON_EFFECT)
end end
......
...@@ -87,7 +87,7 @@ function c16311000.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function c16311000.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c16311000.splimit(e,c) function c16311000.splimit(e,c)
return not c:IsRace(RACE_INSECT) and c:IsLocation(LOCATION_EXTRA) return not c:IsSetCard(0x5dc6) and c:IsLocation(LOCATION_EXTRA)
end end
function c16311000.cfilter2(c,tp,rp) function c16311000.cfilter2(c,tp,rp)
return c:IsRace(RACE_INSECT) and c:GetPreviousControler()==tp return c:IsRace(RACE_INSECT) and c:GetPreviousControler()==tp
......
...@@ -41,7 +41,7 @@ function c16311005.lcheck(g,lc) ...@@ -41,7 +41,7 @@ function c16311005.lcheck(g,lc)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x5dc6) return g:IsExists(Card.IsLinkSetCard,1,nil,0x5dc6)
end end
function c16311005.matfilter(c) function c16311005.matfilter(c)
return c:IsLinkRace(RACE_INSECT) and c:IsType(0x1) or c:IsCode(16311000) return c:IsLinkSetCard(0x5dc6) and c:IsType(TYPE_EFFECT) or c:IsCode(16311000)
end end
function c16311005.matval(e,lc,mg,c,tp) function c16311005.matval(e,lc,mg,c,tp)
if e:GetHandler()~=lc then return false,nil end if e:GetHandler()~=lc then return false,nil end
......
...@@ -48,7 +48,7 @@ function c16311025.spcon(e,c) ...@@ -48,7 +48,7 @@ function c16311025.spcon(e,c)
and Duel.IsExistingMatchingCard(c16311025.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c16311025.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end end
function c16311025.rfilter(c,tp) function c16311025.rfilter(c,tp)
return Duel.GetMZoneCount(tp,c)>0 and c:IsRace(RACE_INSECT) and (c:IsFaceup() or c:IsControler(tp)) return Duel.GetMZoneCount(tp,c)>0 and c:IsSetCard(0x5dc6) and (c:IsFaceup() or c:IsControler(tp))
and not c:IsCode(16311025) and not c:IsCode(16311025)
end end
function c16311025.tkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16311025.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -59,8 +59,7 @@ function c16311025.tkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,8 +59,7 @@ function c16311025.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c16311025.tktg(e,tp,eg,ep,ev,re,r,rp,chk) function c16311025.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.IsPlayerCanSpecialSummonMonster(tp,16311085,0x5dc6,TYPES_TOKEN_MONSTER+TYPE_TUNER,100,300,2,RACE_INSECT,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,16311085,0x5dc6,TYPES_TOKEN_MONSTER+TYPE_TUNER,100,300,2,RACE_INSECT,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
......
...@@ -88,9 +88,9 @@ function c16311150.spsop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -88,9 +88,9 @@ function c16311150.spsop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g,REASON_SPSUMMON) Duel.SendtoGrave(g,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
end end
function c16311150.con(e,tp,eg,ep,ev,re,r,rp) function c16311150.con(e)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsSummonLocation(LOCATION_EXTRA) and Duel.GetTurnPlayer()==1-tp return c:IsSummonLocation(LOCATION_EXTRA) and Duel.GetTurnPlayer()==1-e:GetHandlerPlayer()
end end
function c16311150.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c16311150.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:GetDefense()<=1500 return c:GetDefense()<=1500
......
...@@ -95,7 +95,7 @@ function c16401635.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,7 +95,7 @@ function c16401635.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c16401635.cfilter,1,nil,tp) return eg:IsExists(c16401635.cfilter,1,nil,tp)
end end
function c16401635.spfilter(c,e,tp) function c16401635.spfilter(c,e,tp)
return c:IsCode(16401635) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(16401630) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c16401635.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c16401635.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -43,7 +43,7 @@ function cm.chkfilter(c,tp) ...@@ -43,7 +43,7 @@ function cm.chkfilter(c,tp)
return c:IsCode(18700548,18700552) return c:IsCode(18700548,18700552)
end end
function cm.fcheck(tp,sg,fc) function cm.fcheck(tp,sg,fc)
if Duel.IsExistingMatchingCard(cm.chkfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) then if Duel.IsExistingMatchingCard(cm.chkfilter,tp,LOCATION_MZONE+LOCATION_REMOVED,0,1,nil) then
return sg:FilterCount(Card.IsControler,nil,1-tp)<=1 return sg:FilterCount(Card.IsControler,nil,1-tp)<=1
else else
return sg:FilterCount(Card.IsControler,nil,1-tp)<=0 return sg:FilterCount(Card.IsControler,nil,1-tp)<=0
...@@ -85,7 +85,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local mg1=Duel.GetMatchingGroup(cm.ffilter2,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,nil,e) local mg1=Duel.GetMatchingGroup(cm.ffilter2,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,nil,e)
local mg2=Duel.GetMatchingGroup(cm.filter3,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,e) local mg2=Duel.GetMatchingGroup(cm.filter3,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,e)
local exmat=false local exmat=false
if mg1:IsExists(cm.chkfilter,1,nil,tp) and mg2:GetCount()>0 then if Duel.IsExistingMatchingCard(cm.chkfilter,tp,LOCATION_MZONE+LOCATION_REMOVED,0,1,nil,tp) and mg2:GetCount()>0 then
mg1:Merge(mg2) mg1:Merge(mg2)
exmat=true exmat=true
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