Commit 74404aca authored by wind2009's avatar wind2009

Fix 神の密告

parent 52086825
Pipeline #42599 passed with stages
in 1 minute and 40 seconds
No preview for this file type
......@@ -73,4 +73,5 @@
101304075
101304076
101304078
101304079
101304080
\ No newline at end of file
......@@ -3,6 +3,7 @@ local s,id,o=GetID()
function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
......@@ -70,7 +71,7 @@ function s.rmfilter(c,tp,tc)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==1 then
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToChain(ev)
and Duel.Destroy(eg,REASON_EFFECT)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -83,7 +84,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
elseif e:GetLabel()==2 then
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToChain(ev)
and Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)~=0 then
local g=Duel.GetMatchingGroup(s.rmfilter,tp,0,LOCATION_HAND+LOCATION_DECK,nil,1-tp,re:GetHandler())
if g:GetCount()>0 then
......@@ -106,7 +107,7 @@ function s.cfilter(c)
end
function s.accost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_SZONE,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_SZONE,0,1,1,e:GetHandler())
Duel.ConfirmCards(1-tp,g)
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