Commit 6d593e52 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c22134510.lua

parent bf11d6d7
Pipeline #31115 passed with stages
in 32 minutes and 16 seconds
...@@ -28,6 +28,20 @@ function s.initial_effect(c) ...@@ -28,6 +28,20 @@ function s.initial_effect(c)
e1:SetOperation(s.acop) e1:SetOperation(s.acop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
-- 用于让卡被无效之后指示物也不会被去除 -- 用于让卡被无效之后指示物也不会被去除
-- 特殊召唤时,清除指示物设置
local ec3=Effect.CreateEffect(c)
ec3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
ec3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
ec3:SetRange(LOCATION_MZONE)
ec3:SetCode(EVENT_SPSUMMON)
ec3:SetOperation(s.resetcop)
c:RegisterEffect(ec3)
local ec30=ec3:Clone()
ec30:SetCode(EVENT_SUMMON)
c:RegisterEffect(ec30)
local ec31=ec3:Clone()
ec31:SetCode(EVENT_FLIP_SUMMON)
c:RegisterEffect(ec31)
-- 检测是否出现指示物跳变 -- 检测是否出现指示物跳变
local ec1=Effect.CreateEffect(c) local ec1=Effect.CreateEffect(c)
ec1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) ec1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
...@@ -38,7 +52,7 @@ function s.initial_effect(c) ...@@ -38,7 +52,7 @@ function s.initial_effect(c)
c:RegisterEffect(ec1) c:RegisterEffect(ec1)
-- 检测指示物是否属于自主减少 -- 检测指示物是否属于自主减少
local ec0=Effect.CreateEffect(c) local ec0=Effect.CreateEffect(c)
ec0:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) ec0:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ec0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) ec0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
ec0:SetRange(LOCATION_MZONE+LOCATION_PZONE) ec0:SetRange(LOCATION_MZONE+LOCATION_PZONE)
ec0:SetCode(EVENT_REMOVE_COUNTER+0x760) ec0:SetCode(EVENT_REMOVE_COUNTER+0x760)
...@@ -52,20 +66,6 @@ function s.initial_effect(c) ...@@ -52,20 +66,6 @@ function s.initial_effect(c)
ec2:SetCode(EVENT_CUSTOM+id) ec2:SetCode(EVENT_CUSTOM+id)
ec2:SetOperation(s.htccop) ec2:SetOperation(s.htccop)
c:RegisterEffect(ec2) c:RegisterEffect(ec2)
-- 特殊召唤时,清除指示物设置
local ec3=Effect.CreateEffect(c)
ec3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
ec3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
ec3:SetRange(LOCATION_MZONE)
ec3:SetCode(EVENT_SPSUMMON)
ec3:SetOperation(s.resetcop)
c:RegisterEffect(ec3)
local ec30=ec3:Clone()
ec30:SetCode(EVENT_SUMMON)
c:RegisterEffect(ec30)
local ec31=ec3:Clone()
ec31:SetCode(EVENT_FLIP_SUMMON)
c:RegisterEffect(ec31)
--special summon by PZONE --special summon by PZONE
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -209,7 +209,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -209,7 +209,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local thg = Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thgfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil) local thg = Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thgfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
if thg:GetCount()>0 then if thg:GetCount()>0 then
Duel.SendtoHand(thg,nil,REASON_EFFECT) Duel.SendtoHand(thg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,thg)
end end
end end
end end
...@@ -281,10 +281,11 @@ function s.tdfilter2(c) ...@@ -281,10 +281,11 @@ function s.tdfilter2(c)
end end
-- 用于让卡被无效之后指示物也不会被去除 -- 用于让卡被无效之后指示物也不会被去除
function s.chkcop(e,tp,eg,ep,ev,re,r,rp) function s.chkcop(e,tp,eg,ep,ev,re,r,rp)
e22134510 = e
local cnt = e:GetHandler():GetCounter(0x760) local cnt = e:GetHandler():GetCounter(0x760)
local chc = e:GetLabel() local chc = e:GetLabel()
if chc then if chc then
if chc>=cnt then if chc>=cnt and cnt<=1 and e:GetHandler():GetFlagEffect(22134501)==0 then
e:SetLabel(chc) e:SetLabel(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
...@@ -308,5 +309,5 @@ function s.htccop(e,tp,eg,ep,ev,re,r,rp) ...@@ -308,5 +309,5 @@ function s.htccop(e,tp,eg,ep,ev,re,r,rp)
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(e22134510) Duel.GetLabel(e22134510)
e22134510:SetLabel() e22134510:SetLabel(0)
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