Commit cfa5c3ea authored by POLYMER's avatar POLYMER

fix

parent aff39b08
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddSynchroMixProcedure(c,s.matfilter1,nil,nil,s.matfilter2,1,99) aux.AddSynchroMixProcedure(c,aux.Tuner(nil),nil,nil,nil,1,99)
c:EnableReviveLimit() c:EnableReviveLimit()
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
...@@ -60,12 +60,6 @@ end ...@@ -60,12 +60,6 @@ end
function s.descon(e) function s.descon(e)
return not Duel.IsExistingMatchingCard(aux.TRUE,0,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) return not Duel.IsExistingMatchingCard(aux.TRUE,0,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler())
end end
function s.matfilter1(c)
return c:IsType(TYPE_MONSTER)
end
function s.matfilter2(c,syncard)
return c:IsNotTuner(syncard)
end
function s.val(e,re,val,r,rp,rc) function s.val(e,re,val,r,rp,rc)
local lp=Duel.GetLP(1-e:GetHandlerPlayer()) local lp=Duel.GetLP(1-e:GetHandlerPlayer())
return math.ceil(lp/2) return math.ceil(lp/2)
......
...@@ -54,7 +54,7 @@ function s.sdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function s.sdop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
Duel.PreserveSelectDeckSequence(true) Duel.PreserveSelectDeckSequence(true)
local sg=g:FilterSelect(tp,s.ovfilter,1,1,nil,tp) local sg=g:FilterSelect(tp,Card.IsCanOverlay,1,1,nil,tp)
Duel.PreserveSelectDeckSequence(false) Duel.PreserveSelectDeckSequence(false)
if #sg>0 then if #sg>0 then
Duel.DisableShuffleCheck(true) Duel.DisableShuffleCheck(true)
...@@ -76,7 +76,7 @@ function s.mttg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -76,7 +76,7 @@ function s.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.mtop(e,tp,eg,ep,ev,re,r,rp) function s.mtop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ol=e:GetLabel) local ol=e:GetLabel()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,s.mtfilter,tp,0,LOCATION_ONFIELD,ol,ol,nil,e) local g=Duel.SelectMatchingCard(tp,s.mtfilter,tp,0,LOCATION_ONFIELD,ol,ol,nil,e)
......
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