Commit 3713bd8f authored by POLYMER's avatar POLYMER

fix

parent 56b702bb
......@@ -83,7 +83,7 @@ function c33700931.activate(e,tp,eg,ep,ev,re,r,rp)
for i=1,2 do
local p2=player[i]
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(Card.IsCanBeSpecialSummoned),p2,LOCATION_HAND+LOCATION_GRAVE,0,nil,e,0,p2,false,false)
if Duel.GetLocationCount(p2,LOCATION_MZONE)>0 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(33700931,3)) then
if Duel.GetLocationCount(p2,LOCATION_MZONE)>0 and #g>0 and Duel.SelectYesNo(p2,aux.Stringid(33700931,3)) then
Duel.Hint(HINT_SELECTMSG,p2,HINTMSG_SPSUMMON)
local sg=g:Select(p2,1,1,nil)
Duel.SpecialSummon(sg,0,p2,p2,false,false,POS_FACEUP)
......
......@@ -35,7 +35,7 @@ end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local b1=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) and Duel.GetFlagEffect(tp,id)==0
local b2=c:IsReleasableByEffect() and Duel.GetMZoneCount(tp,c,tp)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsExistingMatchingCard(s.spfilter1,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetFlagEffect(tp,id+1)==0
local b2=c:IsReleasableByEffect() and Duel.GetMZoneCount(tp,c,tp)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsExistingMatchingCard(s.spfilter1,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetFlagEffect(tp,id+1)==0
if chk==0 then return b1 or b2 end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK+LOCATION_GRAVE)
......@@ -43,7 +43,7 @@ end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local b1=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) and Duel.GetFlagEffect(tp,id)==0
local b2=c:IsReleasableByEffect() and Duel.GetMZoneCount(tp,c,tp)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsExistingMatchingCard(s.spfilter1,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetFlagEffect(tp,id+1)==0
local b2=c:IsReleasableByEffect() and Duel.GetMZoneCount(tp,c,tp)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsExistingMatchingCard(s.spfilter1,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetFlagEffect(tp,id+1)==0
local op=0
if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(id,0),aux.Stringid(id,1))
elseif b1 then op=Duel.SelectOption(tp,aux.Stringid(id,0))
......@@ -59,6 +59,7 @@ local b1=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) and Duel
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end
Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1)
end
else
Duel.Release(c,REASON_EFFECT)
......@@ -68,6 +69,7 @@ local b1=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) and Duel
g1:Merge(g2)
local sg=g1:SelectSubGroup(tp,s.fselect,false,2,2)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE+PHASE_END,0,1)
end
end
end
......@@ -95,7 +97,7 @@ function s.cfilter(c,tp)
return c:IsSetCard(0x9d3) and c:IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,c)
end
function s.thfilter(c,tp)
return c:IsSetCard(0x9d3) and c:IsType(TYPE_SPELL) and c:IsSSetable() and c:IsType(TYPE_QUICKPLAY)
return c:IsSetCard(0x9d3) and c:IsType(TYPE_SPELL) and c:IsSSetable() and c:IsType(TYPE_QUICKPLAY)
end
function s.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) 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