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

Replace c22134515.lua

parent a0bf41e9
Pipeline #31133 passed with stages
in 54 minutes and 9 seconds
--右卫枢·失落
local s,id,o=GetID()
local e22134515
local Ccnt = 0
function s.initial_effect(c)
-- 让这张卡就算被无效也能放指示物
-- 以后定义哪张卡可以放指示物要在这里输入0x760
......@@ -279,33 +279,31 @@ function s.tdfilter2(c)
end
-- 用于让卡被无效之后指示物也不会被去除
function s.chkcop(e,tp,eg,ep,ev,re,r,rp)
e22134515 = e
local cnt = e:GetHandler():GetCounter(0x760)
local chc = e:GetLabel()
if chc then
local chc = Ccnt
if chc > 0 then
if chc>=cnt and cnt<=1 and e:GetHandler():GetFlagEffect(22134501)==0 then
e:SetLabel(chc)
Ccnt = chc
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+id,e,0,0,0,0)
return
end
end
e:SetLabel(cnt)
Ccnt = cnt
end
function s.chkncop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(22134501)==0 and e22134515 then
e22134515:SetLabel(e:GetHandler():GetCounter(0x760))
if e:GetHandler():GetFlagEffect(22134501)==0 then
Ccnt = e:GetHandler():GetCounter(0x760)
end
end
function s.htccop(e,tp,eg,ep,ev,re,r,rp)
local c = e:GetHandler()
if c:GetFlagEffect(22134501)<=0 and c:IsDisabled() and c:IsLocation(LOCATION_PZONE+LOCATION_MZONE) then
local cnt = re:GetLabel()
local cnt = Ccnt
if not (Duel.IsCanAddCounter(c:GetOwner(),0x760,cnt,c) and cnt >0) then return end
c:AddCounter(0x760,cnt)
end
end
function s.resetcop(e,tp,eg,ep,ev,re,r,rp)
Duel.GetLabel(e22134515)
e22134515:SetLabel(0)
Ccnt = 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