Commit 78564858 authored by GuGu's avatar GuGu

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

parent 6fc7a6cc
Pipeline #22024 passed with stage
in 2 minutes and 15 seconds
...@@ -39,18 +39,27 @@ function c23197.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,18 +39,27 @@ function c23197.desop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE) e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE)
e1:SetCode(EFFECT_FORBIDDEN) e1:SetCode(EFFECT_FORBIDDEN)
e1:SetCondition(c23197.bancon)
e1:SetTarget(c23197.bantg) e1:SetTarget(c23197.bantg)
e1:SetLabel(pos)
e1:SetLabelObject(tc) e1:SetLabelObject(tc)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
--[[ end
local e2=Effect.CreateEffect(e:GetHandler()) function c23197.banfilter1(c,e)
e2:SetType(EFFECT_TYPE_FIELD) return c==e:GetLabelObject() and c:IsFaceup() and c:IsOnField()
e2:SetCode(EFFECT_DISABLE) end
e2:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD) function c23197.banfilter2(c,e)
e2:SetTarget(c23197.bantg) return c==e:GetLabelObject() and c:IsFacedown() and c:IsOnField()
e2:SetLabelObject(tc) end
Duel.RegisterEffect(e2,tp) function c23197.bancon(e)
]]-- local tp=e:GetHandlerPlayer()
local tc=e:GetLabelObject()
local pos=e:GetLabel()
if pos==1 and Duel.IsExistingMatchingCard(c23197.banfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true
else e:SetLabel(0) end
if Duel.IsExistingMatchingCard(c23197.banfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true end
e:Reset()
return false
end end
function c23197.bantg(e,c) function c23197.bantg(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
......
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