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

Replace c22600021.lua

parent 7b68cfe4
......@@ -38,6 +38,9 @@ function cm.initial_effect(c)
local e20=e1:Clone()
e20:SetCode(EVENT_CHAIN_NEGATED)
c:RegisterEffect(e20)
local e21=e1:Clone()
e21:SetCode(EVENT_CHAIN_END)
c:RegisterEffect(e21)
local e10=Effect.CreateEffect(c)
e10:SetDescription(aux.Stringid(m,0))
e10:SetCategory(CATEGORY_DISABLE)
......@@ -68,21 +71,15 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsFaceup() and Duel.GetMatchingGroupCount(cm.countfilter,tp,LOCATION_ONFIELD,0,nil)==0 then
if Duel.Remove(c,0,REASON_EFFECT+REASON_TEMPORARY)~=0 then
c:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1)
--e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,0))
--Duel.Recover(1-tp,1000,REASON_EFFECT)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAINING)
e1:SetCode(EVENT_ADJUST)
e1:SetCountLimit(1)
e1:SetCondition(cm.rtcon)
e1:SetOperation(cm.retop)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_CHAIN_SOLVED)
e2:SetCountLimit(1)
e2:SetCondition(cm.rtcon)
e2:SetOperation(cm.retop)
Duel.RegisterEffect(e2,tp)
end
end
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