Commit b6a6c5bd authored by POLYMER's avatar POLYMER

fix

parent f4276f97
...@@ -24,7 +24,8 @@ function cm.initial_effect(c) ...@@ -24,7 +24,8 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.chfilter(c) function cm.chfilter(c)
return c:IsRace(RACE_INSECT) and c:IsFaceup() and c:IsLevelAbove(1) and not (c:IsLevel(2) and c:IsType(TYPE_TUNER)) if c:IsLevel(2) or c:IsType(TYPE_TUNER) then return false end
return c:IsRace(RACE_INSECT) and c:IsFaceup() and c:IsLevelAbove(1)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -122,7 +122,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,7 +122,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=dg:Select(tp,1,1,nil) local sg=dg:Select(tp,1,1,nil)
sg:AddCard(c) sg:AddCard(c)
if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)==2 then if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)>0 then
local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp) local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then
tc:CompleteProcedure() tc:CompleteProcedure()
......
...@@ -122,7 +122,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,7 +122,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=dg:Select(tp,1,1,nil) local sg=dg:Select(tp,1,1,nil)
sg:AddCard(c) sg:AddCard(c)
if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)==2 then if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)>0 then
local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp) local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then
tc:CompleteProcedure() tc:CompleteProcedure()
......
...@@ -144,7 +144,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -144,7 +144,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=dg:Select(tp,1,1,nil) local sg=dg:Select(tp,1,1,nil)
sg:AddCard(c) sg:AddCard(c)
if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)==2 then if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)>0 then
local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp) local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then
tc:CompleteProcedure() tc:CompleteProcedure()
......
...@@ -146,7 +146,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -146,7 +146,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=dg:Select(tp,1,1,nil) local sg=dg:Select(tp,1,1,nil)
sg:AddCard(c) sg:AddCard(c)
if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)==2 then if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)>0 then
local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp) local tc=Duel.GetFirstMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then
tc:CompleteProcedure() tc:CompleteProcedure()
......
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