Commit 29dbf2c3 authored by GuGu's avatar GuGu

Update c86379848.lua

parent 8a4e1dcb
Pipeline #29177 passed with stage
in 8 seconds
--秘封部长✿宇佐见堇子 --秘封部长✿宇佐见堇子
function c86379848.initial_effect(c) function c86379848.initial_effect(c)
aux.AddCodeList(c,22271101) aux.AddCodeList(c,22271101)
c:EnableReviveLimit() --c:EnableReviveLimit()
--special summon --special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(86379848,0)) e2:SetDescription(aux.Stringid(86379848,0))
...@@ -57,13 +57,13 @@ function c86379848.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,13 +57,13 @@ function c86379848.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c86379848.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c86379848.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,true) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c86379848.spop(e,tp,eg,ep,ev,re,r,rp) function c86379848.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)>0 then if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
c:CompleteProcedure() c:CompleteProcedure()
end end
end end
...@@ -120,7 +120,7 @@ function c86379848.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -120,7 +120,7 @@ function c86379848.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c86379848.costfilter,tp,LOCATION_GRAVE,0,3,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c86379848.costfilter,tp,LOCATION_GRAVE,0,3,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c86379848.costfilter,tp,LOCATION_GRAVE,0,3,3,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,c86379848.costfilter,tp,LOCATION_GRAVE,0,3,3,e:GetHandler())
Duel.Remove(g,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c86379848.stg(e,tp,eg,ep,ev,re,r,rp,chk) function c86379848.stg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
......
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