Commit df4ba98f authored by salix5's avatar salix5

fix

parent 3028b951
......@@ -4,9 +4,14 @@ function c22610082.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c22610082.target)
e1:SetOperation(c22610082.activate)
c:RegisterEffect(e1)
end
function c22610082.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeck() and not c:IsLocation(LOCATION_GRAVE) end
end
function c22610082.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
......
......@@ -27,6 +27,7 @@ function c8038143.condition(e,tp,eg,ep,ev,re,r,rp)
return true
end
end
return false
end
function c8038143.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true 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