Commit 6a10a269 authored by POLYMER's avatar POLYMER

fix

parent 736f5d39
This diff is collapsed.
...@@ -309,13 +309,13 @@ function c4058.actop(e,tp,eg,ep,ev,re,r,rp) ...@@ -309,13 +309,13 @@ function c4058.actop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local rc=re:GetHandler() local rc=re:GetHandler()
if re:GetActivateLocation()~=LOCATION_HAND then return end if re:GetActivateLocation()~=LOCATION_HAND then return end
if not rc:IsCode(16067089,93217231,80678380,1683982) then return end if not rc:IsCode(16067089,93217231,80678380,1683982,95561146) then return end
Duel.RegisterFlagEffect(rc:GetControler(),rc:GetOriginalCode(),RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(rc:GetControler(),rc:GetOriginalCode(),RESET_PHASE+PHASE_END,0,1)
end end
--plus effect --plus effect
function c4058.dafilter(c) function c4058.dafilter(c)
return c:IsType(TYPE_TRAP) and c:IsCode(16067089,93217231,80678380,1683982) and Duel.GetFlagEffect(c:GetControler(),c:GetOriginalCode())==0 return c:IsType(TYPE_TRAP) and c:IsCode(16067089,93217231,80678380,1683982,95561146) and Duel.GetFlagEffect(c:GetControler(),c:GetOriginalCode())==0
end end
function c4058.adop(e,tp,eg,ep,ev,re,r,rp) function c4058.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -370,7 +370,7 @@ function c4058.sftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -370,7 +370,7 @@ function c4058.sftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return (not fcon or fcon(e,tp,eg,ep,ev,re,r,rp)) return (not fcon or fcon(e,tp,eg,ep,ev,re,r,rp))
and (not fcos or fcos(e,tp,eg,ep,ev,re,r,rp,0)) and (not fcos or fcos(e,tp,eg,ep,ev,re,r,rp,0))
and (not ftg or ftg(e,tp,eg,ep,ev,re,r,rp,0)) and (not ftg or ftg(e,tp,eg,ep,ev,re,r,rp,0))
and e:GetHandler():IsCode(16067089,93217231,80678380,1683982) and e:GetHandler():IsCode(16067089,93217231,80678380,1683982,95561146)
end end
if fcos then fcos(e,tp,eg,ep,ev,re,r,rp,1) end if fcos then fcos(e,tp,eg,ep,ev,re,r,rp,1) end
if ftg then ftg(e,tp,eg,ep,ev,re,r,rp,1) end if ftg then ftg(e,tp,eg,ep,ev,re,r,rp,1) end
...@@ -391,7 +391,7 @@ function c4058.costchk(e,te_or_c,tp) ...@@ -391,7 +391,7 @@ function c4058.costchk(e,te_or_c,tp)
local tp=e:GetHandler():GetControler() local tp=e:GetHandler():GetControler()
return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsPlayerAffectedByEffect(tp,4058) and Duel.GetFlagEffect(tp,e:GetHandler():GetOriginalCode())==0 and Duel.IsPlayerAffectedByEffect(tp,4058) and Duel.GetFlagEffect(tp,e:GetHandler():GetOriginalCode())==0
and e:GetHandler():IsCode(16067089,93217231,80678380,1683982) and e:GetHandler():IsCode(16067089,93217231,80678380,1683982,95561146)
end end
function c4058.costop(e,tp,eg,ep,ev,re,r,rp) function c4058.costop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject() local te=e:GetLabelObject()
......
...@@ -78,6 +78,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,6 +78,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
if not tc:CheckUniqueOnField(tp) then pos=POS_FACEDOWN_DEFENSE end if not tc:CheckUniqueOnField(tp) then pos=POS_FACEDOWN_DEFENSE end
if Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,true,pos)>0 then if Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,true,pos)>0 then
tc:CompleteProcedure() tc:CompleteProcedure()
if tc:IsPosition(POS_FACEDOWN) then Duel.ConfirmCards(1-tp,tc) end
end end
end end
\ No newline at end of file
...@@ -48,16 +48,16 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,16 +48,16 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function s.ssfilter(c,tp) function s.ssfilter(c)
return c:IsCode(92650018,95545183,91951471,81601517,92958307,31834488,35480699,81057455,62091148,98173209,67381587,31785398,97997309,27170599,86516889,7617062,37055344,40838625,74640994,28369508,19739265,56294501,89320376,69599136,90075978,14087893,38436986,58882608,59069885,74611888,32152870,69320362,98414735,74213995,73567374,41215808,78942513,8080257,81210420,53329234,30748475,19671102,60398723,12923641,27781371,41356845,23912837,28273805,80168720,59293853) and c:IsSSetable() and (c:IsType(TYPE_FIELD) or Duel.GetLocationCount(tp,LOCATION_SZONE)>0) return c:IsOriginalEffectProperty(function (e) return e:IsHasCategory(CATEGORY_MSET) end) and c:IsSSetable()
end end
function s.thcon(e,tp,eg,ep,ev,re,r,rp) function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.ssfilter,tp,LOCATION_DECK,0,1,nil,tp) return Duel.IsExistingMatchingCard(s.ssfilter,tp,LOCATION_DECK,0,1,nil)
end end
function s.thop(e,tp,eg,ep,ev,re,r,rp) function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,s.ssfilter,tp,LOCATION_DECK,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,s.ssfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.SSet(tp,tc) Duel.SSet(tp,tc)
......
...@@ -40,7 +40,7 @@ function c98921021.spcon(e,c) ...@@ -40,7 +40,7 @@ function c98921021.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.IsExistingMatchingCard(c98921021.pfilter,tp,LOCATION_DECK,0,1,nil,tp) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 return ft>0 and Duel.IsExistingMatchingCard(c98921021.pfilter,tp,LOCATION_DECK,0,1,nil,tp) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
end end
function c98921021.spop(e,tp,eg,ep,ev,re,r,rp,c) function c98921021.spop(e,tp,eg,ep,ev,re,r,rp,c)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return 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