Commit c4fad765 authored by Amiya's avatar Amiya

修复

parent b1614214
Pipeline #42516 passed with stages
in 2 minutes and 57 seconds
--動点するP --動点するP
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
c:EnableCounterPermit(0x4d) c:EnableCounterPermit(0x73)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -33,11 +33,11 @@ function s.initial_effect(c) ...@@ -33,11 +33,11 @@ function s.initial_effect(c)
end end
function s.cttg(e,tp,eg,ep,ev,re,r,rp,chk) function s.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,1,0,0x4d) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,1,0,0x73)
end end
function s.ctop(e,tp,eg,ep,ev,re,r,rp) function s.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
c:AddCounter(0x4d,1) c:AddCounter(0x73,1)
end end
function s.cfilter(c) function s.cfilter(c)
local seq=c:GetSequence() local seq=c:GetSequence()
...@@ -49,7 +49,7 @@ end ...@@ -49,7 +49,7 @@ end
function s.seqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.seqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.cfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.cfilter(chkc) end
if chk==0 then return c:GetCounter(0x4d)>0 and Duel.IsExistingTarget(s.cfilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end if chk==0 then return c:GetCounter(0x73)>0 and Duel.IsExistingTarget(s.cfilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,1))
Duel.SelectTarget(tp,s.cfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler()) Duel.SelectTarget(tp,s.cfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
end end
...@@ -70,8 +70,8 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,8 +70,8 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToChain() then return end if not tc:IsRelateToChain() then return end
if c:GetCounter(0x4d)==0 then return end if c:GetCounter(0x73)==0 then return end
local ct=c:GetCounter(0x4d) local ct=c:GetCounter(0x73)
while ct>0 do while ct>0 do
local seq=tc:GetSequence() local seq=tc:GetSequence()
if seq>4 then return end if seq>4 then return end
......
#The first line is used for comment #The first line is used for comment
!setname 0x2db 妖精传姬 !setname 0x2db 妖精传姬
!setname 0x2dc 道化之一座 !setname 0x2dc 道化之一座
!counter 0x4c 指示物(召唤冲击) !counter 0x73 T指示物
!counter 0x4d T指示物 \ No newline at end of file
\ No newline at end of file
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