Commit 6d811ceb authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Corridor of Agony (#1810)

parent c4408033
...@@ -8,18 +8,27 @@ function c26257572.initial_effect(c) ...@@ -8,18 +8,27 @@ function c26257572.initial_effect(c)
--disable --disable
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_TRIGGER) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_CANNOT_ACTIVATE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(1,1)
e2:SetTarget(c26257572.target) e2:SetValue(c26257572.actlimit)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_DISABLE) e3:SetCode(EFFECT_DISABLE)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetTarget(c26257572.target)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e2:Clone() local e4=e3:Clone()
e4:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE) e4:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c26257572.actlimit(e,re,rp)
local rc=re:GetHandler()
return re:IsActiveType(TYPE_MONSTER) and rc:IsOnField() and rc:IsSummonLocation(LOCATION_DECK)
end
function c26257572.target(e,c) function c26257572.target(e,c)
return c:IsSummonLocation(LOCATION_DECK) return c:IsSummonLocation(LOCATION_DECK)
end 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