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)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
if preatk~=0 and tc:IsAttack(0) then dg:AddCard(tc) end
tc=g:GetNext()
end
Duel.SendtoGrave(dg,REASON_EFFECT)
end
......
......@@ -87,7 +87,7 @@ function c16311000.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
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
function c16311000.cfilter2(c,tp,rp)
return c:IsRace(RACE_INSECT) and c:GetPreviousControler()==tp
......
......@@ -41,7 +41,7 @@ function c16311005.lcheck(g,lc)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x5dc6)
end
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
function c16311005.matval(e,lc,mg,c,tp)
if e:GetHandler()~=lc then return false,nil end
......
......@@ -48,7 +48,7 @@ function c16311025.spcon(e,c)
and Duel.IsExistingMatchingCard(c16311025.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
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)
end
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)
end
function c16311025.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,16311085,0x5dc6,TYPES_TOKEN_MONSTER+TYPE_TUNER,100,300,2,RACE_INSECT,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE) end
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
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......
......@@ -88,9 +88,9 @@ function c16311150.spsop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c16311150.con(e,tp,eg,ep,ev,re,r,rp)
function c16311150.con(e)
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
function c16311150.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:GetDefense()<=1500
......
......@@ -95,7 +95,7 @@ function c16401635.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c16401635.cfilter,1,nil,tp)
end
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
function c16401635.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -43,7 +43,7 @@ function cm.chkfilter(c,tp)
return c:IsCode(18700548,18700552)
end
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
else
return sg:FilterCount(Card.IsControler,nil,1-tp)<=0
......@@ -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 mg2=Duel.GetMatchingGroup(cm.filter3,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,e)
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)
exmat=true
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