Commit c99729f4 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c31710047.lua

parent 71c0292b
Pipeline #32626 passed with stages
in 56 minutes and 36 seconds
......@@ -48,16 +48,18 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,4))
local mg = Duel.GetMatchingGroup(s.infilter,tp,LOCATION_MZONE,0,nil)
for tc in aux.Next(mg) do
local e1=Effect.CreateEffect(e:GetHandler())
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(id,3))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_CHAIN)
e1:SetValue(s.efilter)
tc:RegisterEffect(e1,true)
Duel.AdjustAll()
end
......@@ -71,17 +73,9 @@ function s.infilter(c)
end
return false
end
function s.indtg(e,c)
local mg = Duel.GetMatchingGroup(s.lkfilter,tp,LOCATION_MZONE,0,nil)
for tc in aux.Next(mg) do
if tc:GetLinkedGroup():IsContains(c) then return true end
end
return false
end
function s.efilter(e,re)
return e:GetHandlerPlayer()~=re:GetOwnerPlayer()
function s.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetOwnerPlayer()
end
function s.lkfilter(c,lc,sumtype,tp)
return c:IsLinkType(TYPE_LINK) and c:IsSetCard(0x690)
......
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