Commit bd9c14f1 authored by GuGu's avatar GuGu

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

parent 2fe07269
Pipeline #22028 passed with stage
in 1 minute and 41 seconds
...@@ -75,28 +75,37 @@ function c200003.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,28 +75,37 @@ function c200003.op2(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 c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsLocation(LOCATION_ONFIELD) then if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsLocation(LOCATION_ONFIELD) then
--forbidden local pos=0
local e1=Effect.CreateEffect(e:GetHandler()) if tc:IsFacedown() then pos=1 end
e1:SetType(EFFECT_TYPE_FIELD) --forbidden
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_FORBIDDEN) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetTargetRange(0xff,0xff) e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE)
e1:SetTarget(c200003.bantg) e1:SetCode(EFFECT_FORBIDDEN)
e1:SetLabelObject(tc) e1:SetCondition(c200003.bancon)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetTarget(c200003.bantg)
Duel.RegisterEffect(e1,tp) e1:SetLabel(pos)
--[[ e1:SetLabelObject(tc)
local e2=Effect.CreateEffect(e:GetHandler()) e1:SetReset(RESET_PHASE+PHASE_END)
e2:SetType(EFFECT_TYPE_FIELD) Duel.RegisterEffect(e1,tp)
e2:SetCode(EFFECT_DISABLE) end
e2:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD) end
e2:SetTarget(c200003.bantg) function c200003.banfilter1(c,e)
e2:SetLabelObject(tc) return c==e:GetLabelObject() and c:IsFaceup() and c:IsOnField()
e2:SetReset(RESET_PHASE+PHASE_END) end
Duel.RegisterEffect(e2,tp) function c200003.banfilter2(c,e)
]]-- return c==e:GetLabelObject() and c:IsFacedown() and c:IsOnField()
end end
function c200003.bancon(e)
local tp=e:GetHandlerPlayer()
local tc=e:GetLabelObject()
local pos=e:GetLabel()
if pos==1 and Duel.IsExistingMatchingCard(c200003.banfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true
else e:SetLabel(0) end
if Duel.IsExistingMatchingCard(c200003.banfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true end
e:Reset()
return false
end end
function c200003.bantg(e,c) function c200003.bantg(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
\ 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