Commit d2047381 authored by mercury233's avatar mercury233

fix

parent c11c00ba
...@@ -32,6 +32,7 @@ function c100227014.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,6 +32,7 @@ function c100227014.tdop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
local g=Group.FromCards(c,tc) local g=Group.FromCards(c,tc)
if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)==0 then return end if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)==0 then return end
Duel.ShuffleDeck(tp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
......
...@@ -43,8 +43,8 @@ function c100227027.initial_effect(c) ...@@ -43,8 +43,8 @@ function c100227027.initial_effect(c)
end end
function c100227027.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100227027.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp and e:GetHandler():GetFlagEffect(100227127)==0 end if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp and e:GetHandler():GetFlagEffect(100227127)==0 end
c:RegisterFlagEffect(100227127,RESET_EVENT+0x1fe0000,0,1) c:RegisterFlagEffect(100227127,RESET_EVENT+0x1fe0000,0,1)
return true return true
end end
function c100227027.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c100227027.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -44,8 +44,8 @@ function c100227028.initial_effect(c) ...@@ -44,8 +44,8 @@ function c100227028.initial_effect(c)
end end
function c100227028.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100227028.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp and e:GetHandler():GetFlagEffect(100227128)==0 end if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp and e:GetHandler():GetFlagEffect(100227128)==0 end
c:RegisterFlagEffect(100227128,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1) c:RegisterFlagEffect(100227128,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
return true return true
end end
function c100227028.acfilter(c) function c100227028.acfilter(c)
......
...@@ -38,10 +38,13 @@ function c100227044.initial_effect(c) ...@@ -38,10 +38,13 @@ function c100227044.initial_effect(c)
e3:SetOperation(c100227044.posop) e3:SetOperation(c100227044.posop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c100227044.costfilter(c)
return c:IsAbleToGraveAsCost() and c:GetSequence()<5
end
function c100227044.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c100227044.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_SZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c100227044.costfilter,tp,LOCATION_SZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_SZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c100227044.costfilter,tp,LOCATION_SZONE,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c100227044.spfilter(c,e,tp,tid) function c100227044.spfilter(c,e,tp,tid)
......
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