Commit 96ed7e40 authored by POLYMER's avatar POLYMER

fix

parent 215dde09
......@@ -69,16 +69,14 @@ function c28316051.tgop(e,tp,eg,ep,ev,re,r,rp)
end
local g=Duel.GetMatchingGroup(c28316051.cfilter,tp,LOCATION_DECK+LOCATION_ONFIELD,0,nil)
if Duel.GetLP(tp)<=3000 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(28316051,2)) then
if g:FilterCount(Card.IsAbleToRemove,nil)<2 or Duel.SelectOption(tp,aux.Stringid(28316051,3),1192)==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local tg=g:Select(tp,1,2,nil)
Duel.HintSelection(tg)
Duel.Destroy(tg,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local sg=g:Select(tp,1,2,nil)
if sg:FilterCount(Card.IsAbleToRemove,nil)<#sg or Duel.SelectOption(tp,aux.Stringid(28316051,3),1192)==0 then
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=g:FilterSelect(tp,Card.IsAbleToRemove,1,2,nil)
Duel.HintSelection(rg)
Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
Duel.HintSelection(sg)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end
end
end
......
......@@ -49,11 +49,11 @@ function c29056009.spfilter(c,e,tp)
return c:IsCode(29065578) and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
end
function c29056009.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c29056009.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) end
if chk==0 then return Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and Duel.IsExistingMatchingCard(c29056009.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA+LOCATION_GRAVE)
end
function c29056009.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
--if Duel.GetLocationCountFromEx(tp,tp,nil,c)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c29056009.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP)
......
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