Commit 4853b1e9 authored by Koishi_Mint's avatar Koishi_Mint Committed by DailyShana

Update Field Barrier (#1066)

parent 8bae85dd
...@@ -11,8 +11,8 @@ function c7153114.initial_effect(c) ...@@ -11,8 +11,8 @@ function c7153114.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_SET_AVAILABLE) e2:SetTargetRange(LOCATION_FZONE,LOCATION_FZONE)
e2:SetTarget(c7153114.infilter) e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetValue(1) e2:SetValue(1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--cannot activate --cannot activate
...@@ -24,22 +24,7 @@ function c7153114.initial_effect(c) ...@@ -24,22 +24,7 @@ function c7153114.initial_effect(c)
e3:SetTargetRange(1,1) e3:SetTargetRange(1,1)
e3:SetValue(c7153114.filter) e3:SetValue(c7153114.filter)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--cannot set
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_CANNOT_SSET)
e4:SetRange(LOCATION_SZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1)
e4:SetTarget(c7153114.sfilter)
c:RegisterEffect(e4)
end
function c7153114.infilter(e,c)
return c:IsType(TYPE_FIELD)
end end
function c7153114.filter(e,re,tp) function c7153114.filter(e,re,tp)
return re:GetHandler():IsType(TYPE_FIELD) and re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:GetHandler():IsType(TYPE_FIELD) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
end end
function c7153114.sfilter(e,c,tp)
return c:IsType(TYPE_FIELD) and Duel.GetFieldCard(tp,LOCATION_SZONE,5)~=nil
end
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