Commit 032cce59 authored by Amiya's avatar Amiya

修复

parent 1296b1c2
Pipeline #41262 passed with stages
in 1 minute and 50 seconds
...@@ -19,13 +19,16 @@ function s.initial_effect(c) ...@@ -19,13 +19,16 @@ function s.initial_effect(c)
s.globle_check=true s.globle_check=true
rl_ReleaseRitualMaterial=Duel.ReleaseRitualMaterial rl_ReleaseRitualMaterial=Duel.ReleaseRitualMaterial
Duel.ReleaseRitualMaterial=function(mat) Duel.ReleaseRitualMaterial=function(mat)
if mat:IsExists(Card.IsLocation,1,nil,LOCATION_GRAVE) then if mat:IsExists(s.rlfilter,1,nil) then
Duel.RegisterFlagEffect(tp,id+o,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,id+o,RESET_PHASE+PHASE_END,0,1)
end end
rl_ReleaseRitualMaterial(mat) rl_ReleaseRitualMaterial(mat)
end end
end end
end end
function s.rlfilter(c)
return c:IsLocation(LOCATION_GRAVE) and c:IsType(TYPE_RITUAL)
end
function s.extraop(e,tp,eg,ep,ev,re,r,rp,tc,mat) function s.extraop(e,tp,eg,ep,ev,re,r,rp,tc,mat)
if not tc then return end if not tc then return end
local fid=e:GetHandler():GetFieldID() local fid=e:GetHandler():GetFieldID()
...@@ -58,6 +61,7 @@ function s.rlop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,6 +61,7 @@ function s.rlop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EXTRA_RITUAL_MATERIAL) e1:SetCode(EFFECT_EXTRA_RITUAL_MATERIAL)
e1:SetTargetRange(LOCATION_GRAVE,0) e1:SetTargetRange(LOCATION_GRAVE,0)
e1:SetCondition(s.rlcon) e1:SetCondition(s.rlcon)
e1:SetTarget(s.rltg)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -66,4 +70,7 @@ function s.rlop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,4 +70,7 @@ function s.rlop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.rlcon(e,tp,eg,ep,ev,re,r,rp) function s.rlcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,id)>Duel.GetFlagEffect(tp,id+o) return Duel.GetFlagEffect(tp,id)>Duel.GetFlagEffect(tp,id+o)
end
function s.rltg(e,c)
return c:IsType(TYPE_RITUAL)
end end
\ No newline at end of file
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