Commit 7caae6d0 authored by POLYMER's avatar POLYMER

fix

parent fe66af0b
...@@ -29,7 +29,7 @@ end ...@@ -29,7 +29,7 @@ end
function c28354358.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28354358.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c28354358.tfilter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c28354358.tfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c28354358.tfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c28354358.tfilter,tp,LOCATION_GRAVE,0,1,nil) end
local g=GetMatchingGroup(c28354358.tfilter,tp,LOCATION_GRAVE,0,nil):Filter(Card.IsCanBeEffectTarget,nil,e) local g=Duel.GetMatchingGroup(c28354358.tfilter,tp,LOCATION_GRAVE,0,nil):Filter(Card.IsCanBeEffectTarget,nil,e)
for tc in aux.Next(g) do for tc in aux.Next(g) do
tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(28354358,1)) tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(28354358,1))
end end
......
...@@ -68,7 +68,7 @@ function c28366501.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c28366501.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if #g>1 then if #g>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
tc=Duel.FilterSelect(tp,Card.IsCode,1,1,nil,ac):GetFirst() tc=g:FilterSelect(tp,Card.IsCode,1,1,nil,ac):GetFirst()
end end
if Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND) then if Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND) then
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
......
...@@ -77,8 +77,8 @@ end ...@@ -77,8 +77,8 @@ end
function s.desfilter(c) function s.desfilter(c)
return c:IsType(TYPE_MONSTER) and not c:IsAttack(0) and c:IsFaceup() return c:IsType(TYPE_MONSTER) and not c:IsAttack(0) and c:IsFaceup()
end end
function s.thfilter(c,e,tp,ec,ft) function s.thfilter(c,e,tp,ec)
return (ft>0 or c:GetSequence()<5) and c:IsCode(40020183) and c:IsLevelAbove(5) and c:IsAbleToHand() and ec:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(40020183) and c:IsLevelAbove(5) and c:IsAbleToHand() and ec:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and s.desfilter(chkc) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and s.desfilter(chkc) end
...@@ -109,7 +109,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -109,7 +109,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if tg:GetCount()>0 and Duel.Destroy(tg,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) and c:IsLocation(LOCATION_HAND) then if tg:GetCount()>0 and Duel.Destroy(tg,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) and c:IsLocation(LOCATION_HAND) then
Duel.BreakEffect() Duel.BreakEffect()
local op=0 local op=0
if Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_MZONE,0,1,nil,e,tp,c,ft) then if (ft>0 or c:GetSequence()<5) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_MZONE,0,1,nil,e,tp,c) then
op=Duel.SelectOption(tp,aux.Stringid(id,1),aux.Stringid(id,2)) op=Duel.SelectOption(tp,aux.Stringid(id,1),aux.Stringid(id,2))
end end
if op==0 then Duel.SendtoGrave(c,REASON_DISCARD) end if op==0 then Duel.SendtoGrave(c,REASON_DISCARD) end
......
...@@ -242,11 +242,11 @@ function c98941056.chop(e,tp,eg,ep,ev,re,r,rp) ...@@ -242,11 +242,11 @@ function c98941056.chop(e,tp,eg,ep,ev,re,r,rp)
end end
function c98941056.repop(e,tp,eg,ep,ev,re,r,rp) function c98941056.repop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c98941056.ctfilterzx,tp,LOCATION_MZONE,0,nil) local g1=Duel.GetMatchingGroup(c98941056.ctfilterzx,tp,LOCATION_MZONE,0,nil)
local g2=Duel.GetMatchingGroup(c98941056.thfilterzx,tp,LOCATION_DECK,0,nil) local g2=Duel.GetMatchingGroup(c98941056.thfilterzx,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
if g1:GetCount()==0 or g2:GetCount()==0 then return end if g1:GetCount()==0 or g2:GetCount()==0 then return end
local ct=g1:GetClassCount(Card.GetCode) local ct=g1:GetClassCount(Card.GetCode)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g2:SelectSubGroup(tp,aux.dncheck,false,1,ct) local sg=g2:SelectSubGroup(tp,aux.TRUE,false,1,ct)
if sg and sg:GetCount()>0 then if sg and sg:GetCount()>0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
...@@ -254,11 +254,11 @@ function c98941056.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -254,11 +254,11 @@ function c98941056.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD) Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD)
end end
local g3=Duel.GetMatchingGroup(c98941056.ctfilterzx,1-tp,LOCATION_MZONE,0,nil) local g3=Duel.GetMatchingGroup(c98941056.ctfilterzx,1-tp,LOCATION_MZONE,0,nil)
local g4=Duel.GetMatchingGroup(c98941056.thfilterzx,1-tp,LOCATION_DECK,0,nil) local g4=Duel.GetMatchingGroup(c98941056.thfilterzx,1-tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
if g3:GetCount()==0 or g4:GetCount()==0 then return end if g3:GetCount()==0 or g4:GetCount()==0 then return end
local ct1=g3:GetClassCount(Card.GetCode) local ct1=g3:GetClassCount(Card.GetCode)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATOHAND)
local sg1=g4:SelectSubGroup(1-tp,aux.dncheck,false,1,ct1) local sg1=g4:SelectSubGroup(1-tp,aux.TRUE,false,1,ct1)
if sg1 and sg:GetCount()>0 then if sg1 and sg:GetCount()>0 then
Duel.SendtoHand(sg1,nil,REASON_EFFECT) Duel.SendtoHand(sg1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg1) Duel.ConfirmCards(1-tp,sg1)
......
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