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

Replace c22134500.lua

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