Commit 725d5432 authored by mercury233's avatar mercury233 Committed by GitHub

fix 深淵に潜む者

parent e6f1d24c
...@@ -22,6 +22,7 @@ function c21044178.initial_effect(c) ...@@ -22,6 +22,7 @@ function c21044178.initial_effect(c)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCost(c21044178.cost) e2:SetCost(c21044178.cost)
e2:SetTarget(c21044178.target)
e2:SetOperation(c21044178.operation) e2:SetOperation(c21044178.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -32,6 +33,9 @@ function c21044178.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,6 +33,9 @@ function c21044178.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c21044178.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,21044178)==0 end
end
function c21044178.operation(e,tp,eg,ep,ev,re,r,rp) function c21044178.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -42,6 +46,7 @@ function c21044178.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,6 +46,7 @@ function c21044178.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c21044178.aclimit) e1:SetValue(c21044178.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,21044178,RESET_PHASE+PHASE_END,0,0)
end end
function c21044178.aclimit(e,re,tp) function c21044178.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_GRAVE return re:GetActivateLocation()==LOCATION_GRAVE
......
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