Commit 0b2715e1 authored by GuGu's avatar GuGu

Update c19027.lua 不能使用相关效果椿务局调整

parent 78564858
Pipeline #22026 passed with stage
in 2 minutes and 23 seconds
......@@ -47,21 +47,40 @@ function c19027.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler())
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetCode(EFFECT_FORBIDDEN)
e1:SetReset(RESET_EVENT+0x1fc0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
--[[
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE)
e2:SetReset(RESET_EVENT+0x1fc0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2)
]]--
tc=g:GetNext()
end
local pos=0
if tc:IsFacedown() then pos=1 end
--forbidden
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE)
e1:SetCode(EFFECT_FORBIDDEN)
e1:SetCondition(c19027.bancon)
e1:SetTarget(c19027.bantg)
e1:SetLabel(pos)
e1:SetLabelObject(tc)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
tc=g:GetNext()
end
end
function c19027.banfilter1(c,e)
return c==e:GetLabelObject() and c:IsFaceup() and c:IsOnField()
end
function c19027.banfilter2(c,e)
return c==e:GetLabelObject() and c:IsFacedown() and c:IsOnField()
end
function c19027.bancon(e)
local tp=e:GetHandlerPlayer()
local tc=e:GetLabelObject()
local pos=e:GetLabel()
if pos==1 and Duel.IsExistingMatchingCard(c19027.banfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true
else e:SetLabel(0) end
if Duel.IsExistingMatchingCard(c19027.banfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true end
e:Reset()
return false
end
function c19027.bantg(e,c)
return c==e:GetLabelObject()
end
function c19027.cfilter(c,tp)
......
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