Commit 004af1e8 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c12400099.lua

parent a3c3b4cd
...@@ -72,10 +72,11 @@ function s.neop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,10 +72,11 @@ function s.neop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
if (re:GetHandler():IsType(TYPE_SPELL) or re:GetHandler():IsType(TYPE_TRAP) ) and tc:IsCanTurnSet() then if (re:GetHandler():IsType(TYPE_SPELL) or re:GetHandler():IsType(TYPE_TRAP) ) then
if Duel.SSet(tp,tc) ~= 0 then return end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEDOWN,true)
if Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) then
local fid=e:GetHandler():GetFieldID()
tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
...@@ -88,6 +89,7 @@ function s.neop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,6 +89,7 @@ function s.neop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(s.rmop) e1:SetOperation(s.rmop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end
end end
end end
end end
...@@ -102,10 +104,10 @@ end ...@@ -102,10 +104,10 @@ end
function s.discon(e,tp,eg,ep,ev,re,r,rp) function s.discon(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end
return rp==1-tp and Duel.IsExistingMatchingCard(s.disfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,re) return rp==1-tp and Duel.IsExistingMatchingCard(s.disfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil,re)
end end
function s.disfilter(c,re) function s.disfilter(c,re)
return c:GetCode()==re:GetHandler():GetCode() and re:GetHandler():IsFaceup() and c:IsFaceup() return c:GetCode()==re:GetHandler():GetCode() and c:IsFaceup()
end end
function s.disop(e,tp,eg,ep,ev,re,r,rp) function s.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
......
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