Commit d09f956c authored by GuGu's avatar GuGu

Update c86379227.lua

parent 70a10464
Pipeline #33474 passed with stage
in 12 seconds
......@@ -8,7 +8,7 @@ function c86379227.initial_effect(c)
e0:SetDescription(aux.Stringid(86379227,1))
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_SPSUMMON_PROC)
e0:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetRange(LOCATION_EXTRA)
e0:SetCountLimit(1,86379227)
e0:SetCondition(c86379227.lkcon)
......@@ -66,21 +66,23 @@ function c86379227.counterfilter(c)
end
--
function c86379227.sprfilter(c,lc)
return c:IsFaceup() and c:IsCanBeLinkMaterial(lc) and c:IsType(TYPE_TOON) and c:IsSetCard(0x300) and c:IsReleasable()
return c:IsFaceup() and c:IsCanBeLinkMaterial(lc) and c:IsType(TYPE_TOON) and c:IsSetCard(0x300) and c:IsReleasable() and c:IsLocation(LOCATION_MZONE)
end
function c86379227.fselect(g,tp,lc)
return Duel.GetLocationCountFromEx(tp,tp,g,lc)>0
end
function c86379227.lkcon(e,c)
function c86379227.lkcon(e,c,og)
if c==nil then return true end
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler()
local rg=Duel.GetMatchingGroup(c86379227.sprfilter,tp,LOCATION_MZONE,0,nil,c)
if og then rg=og:Filter(c86379227.sprfilter,nil,c) end
return rg:CheckSubGroup(c86379227.fselect,2,2,tp,c)
end
function c86379227.lktg(e,tp,eg,ep,ev,re,r,rp,chk,c)
function c86379227.lktg(e,tp,eg,ep,ev,re,r,rp,chk,c,og)
local rg=Duel.GetMatchingGroup(c86379227.sprfilter,tp,LOCATION_MZONE,0,nil,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
if og then rg=og:Filter(c86379227.sprfilter,nil,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c86379227.fselect,true,2,2,tp,c)
if sg then
sg:KeepAlive()
......
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