Commit c6e36e45 authored by wind2009's avatar wind2009

Fix

parent 525fb29b
Pipeline #33573 passed with stages
in 1 minute and 50 seconds
...@@ -35,7 +35,7 @@ function s.initial_effect(c) ...@@ -35,7 +35,7 @@ function s.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.filter(c) function s.filter(c)
return c:IsSetCard(0xbe) and (c:IsType(TYPE_SPELL+TYPE_TRAP) or c:IsType(TYPE_MONSTER) and c:IsAttack(2800) and c:IsDefense(1000)) return c:IsSetCard(0xbe) and c:IsType(TYPE_SPELL+TYPE_TRAP) or c:IsType(TYPE_MONSTER) and c:IsAttack(2800) and c:IsDefense(1000)
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
......
...@@ -76,7 +76,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount() then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -48,13 +48,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,13 +48,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
{b1,aux.Stringid(id,1),1}, {b1,aux.Stringid(id,1),1},
{b2,aux.Stringid(id,2),2}, {b2,aux.Stringid(id,2),2},
{b3,aux.Stringid(id,3),3}, {b3,aux.Stringid(id,3),3},
{true,1345},7) {true,1345,7})
else else
op=aux.SelectFromOptions(tp, op=aux.SelectFromOptions(tp,
{b4,aux.Stringid(id,4),4}, {b4,aux.Stringid(id,4),4},
{b5,aux.Stringid(id,5),5}, {b5,aux.Stringid(id,5),5},
{b6,aux.Stringid(id,6),6}, {b6,aux.Stringid(id,6),6},
{true,1360},7) {true,1360,7})
end end
if op==7 then if op==7 then
page=1-page page=1-page
......
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