Commit a7c73267 authored by mercury233's avatar mercury233 Committed by GitHub

fix 古代の進軍

close #2614
parent edb87fe5
...@@ -36,6 +36,10 @@ function c4064925.initial_effect(c) ...@@ -36,6 +36,10 @@ function c4064925.initial_effect(c)
ge3:SetCode(EVENT_SPSUMMON_SUCCESS) ge3:SetCode(EVENT_SPSUMMON_SUCCESS)
ge3:SetCondition(c4064925.ssetcon) ge3:SetCondition(c4064925.ssetcon)
Duel.RegisterEffect(ge3,0) Duel.RegisterEffect(ge3,0)
local ge4=ge1:Clone()
ge4:SetCode(EVENT_CHANGE_POS)
ge4:SetCondition(c4064925.cpcon)
Duel.RegisterEffect(ge4,0)
end end
end end
function c4064925.checkop(e,tp,eg,ep,ev,re,r,rp) function c4064925.checkop(e,tp,eg,ep,ev,re,r,rp)
...@@ -47,6 +51,12 @@ end ...@@ -47,6 +51,12 @@ end
function c4064925.ssetcon(e,tp,eg,ep,ev,re,r,rp) function c4064925.ssetcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c4064925.cfilter,1,nil) return eg:IsExists(c4064925.cfilter,1,nil)
end end
function c4064925.cfilter2(c)
return c:IsPreviousPosition(POS_FACEUP) and c:IsFacedown()
end
function c4064925.cpcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c4064925.cfilter2,1,nil)
end
function c4064925.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c4064925.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,4064925)==0 end if chk==0 then return Duel.GetFlagEffect(tp,4064925)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
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