Commit 08552682 authored by GuGu's avatar GuGu

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

parent bd9c14f1
Pipeline #22029 passed with stage
in 1 minute and 11 seconds
...@@ -19,46 +19,36 @@ function c200203.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,46 +19,36 @@ function c200203.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
Duel.HintSelection(g) Duel.HintSelection(g)
local pos=0
if tc:IsFacedown() then pos=1 end
--forbidden --forbidden
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE)
e1:SetCode(EFFECT_FORBIDDEN) e1:SetCode(EFFECT_FORBIDDEN)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e1:SetCondition(c200203.bancon)
e1:SetTargetRange(0xff,0xff)
e1:SetTarget(c200203.bantg) e1:SetTarget(c200203.bantg)
e1:SetLabel(pos)
e1:SetLabelObject(tc) e1:SetLabelObject(tc)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
--[[ end
local e2=Effect.CreateEffect(e:GetHandler()) function c200203.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 c200203.banfilter2(c,e)
e2:SetTarget(c200203.bantg) return c==e:GetLabelObject() and c:IsFacedown() and c:IsOnField()
e2:SetLabelObject(tc) end
e2:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN) function c200203.bancon(e)
Duel.RegisterEffect(e2,tp) local tp=e:GetHandlerPlayer()
]]-- local tc=e:GetLabelObject()
--[[ local pos=e:GetLabel()
if tc:IsType(TYPE_MONSTER) then if pos==1 and Duel.IsExistingMatchingCard(c200203.banfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true
--battle target else e:SetLabel(0) end
local e2=Effect.CreateEffect(e:GetHandler()) if Duel.IsExistingMatchingCard(c200203.banfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) then return true end
e2:SetType(EFFECT_TYPE_SINGLE) e:Reset()
e2:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET) return false
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetReset(RESET_PHASE+PHASE_END)
e2:SetValue(1)
tc:RegisterEffect(e2)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetReset(RESET_PHASE+PHASE_END)
e2:SetValue(1)
tc:RegisterEffect(e2)
end]]
end end
function c200203.bantg(e,c) function c200203.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