Commit 047f1b6c authored by mercury233's avatar mercury233 Committed by GitHub

fix 予見通帳

parent be8ec340
...@@ -38,7 +38,7 @@ function c56256517.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c56256517.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetLabel(fid) e1:SetLabel(fid,0)
e1:SetLabelObject(g) e1:SetLabelObject(g)
e1:SetCondition(c56256517.thcon) e1:SetCondition(c56256517.thcon)
e1:SetOperation(c56256517.thop) e1:SetOperation(c56256517.thop)
...@@ -53,12 +53,13 @@ function c56256517.thfilter(c,fid) ...@@ -53,12 +53,13 @@ function c56256517.thfilter(c,fid)
end end
function c56256517.thop(e,tp,eg,ep,ev,re,r,rp) function c56256517.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=c:GetTurnCounter() local fid,ct=e:GetLabel()
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
e:SetLabel(fid,ct)
if ct==3 then if ct==3 then
local g=e:GetLabelObject() local g=e:GetLabelObject()
if g:FilterCount(c56256517.thfilter,nil,e:GetLabel())==3 then if g:FilterCount(c56256517.thfilter,nil,fid)==3 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
end end
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