Commit 6a8a7362 authored by Huangnan's avatar Huangnan

fix

parent 6acc04ad
Pipeline #38815 failed with stages
in 119 minutes and 28 seconds
No preview for this file type
This diff is collapsed.
......@@ -66,6 +66,14 @@ function s.initial_effect(c)
ee:SetCondition(s.scon)
ee:SetOperation(s.sop)
c:RegisterEffect(ee)
local se=Effect.CreateEffect(c)
se:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
se:SetCode(EVENT_CHAIN_SOLVED)
se:SetLabelObject(e1)
se:SetRange(0xff)
se:SetCondition(s.scon2)
se:SetOperation(s.sop2)
c:RegisterEffect(se)
end
function s.cfilter(c)
......@@ -93,13 +101,9 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
if #g>0 then
local tc=g:GetFirst()
if Duel.Destroy(tc,REASON_EFFECT)==0 then
--没有破坏,触发②效果
if Duel.Destroy(tc,REASON_EFFECT)>0 then
c:RegisterFlagEffect(id+1,0,0,1)
end
else
--没有选择,触发②效果
c:RegisterFlagEffect(id+1,0,0,1)
end
end
function s.remcon(e,tp,eg,ep,ev,re,r,rp)
......@@ -161,13 +165,6 @@ end
function s.eqlimit(e,c)
return c==e:GetLabelObject()
end
function s.con(e,tp,eg,ep,ev,re,r,rp)
return re==e:GetLabelObject()
end
function s.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.RaiseEvent(c,EVENT_CUSTOM+id,e,0,tp,tp,0)
end
function s.scon(e,tp,eg,ep,ev,re,r,rp)
return re==e:GetLabelObject() and e:GetHandler():GetFlagEffect(id+1)==0 and e:GetHandler():GetFlagEffect(id)>0
end
......@@ -177,3 +174,11 @@ function s.sop(e,tp,eg,ep,ev,re,r,rp)
c:ResetFlagEffect(id+1)
Duel.RaiseEvent(c,EVENT_CUSTOM+id,e,0,tp,tp,0)
end
function s.scon2(e,tp,eg,ep,ev,re,r,rp)
return re==e:GetLabelObject()and not(e:GetHandler():GetFlagEffect(id+1)==0 and e:GetHandler():GetFlagEffect(id)>0)
end
function s.sop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
c:ResetFlagEffect(id)
c:ResetFlagEffect(id+1)
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