Commit c4fad765 authored by Amiya's avatar Amiya

修复

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