Commit 80b7c053 authored by Satty's avatar Satty

fix

parent f63123ed
Pipeline #35044 passed with stages
in 82 minutes and 28 seconds
expansions/pics/12823220.jpg

33 KB | W: | H:

expansions/pics/12823220.jpg

249 KB | W: | H:

expansions/pics/12823220.jpg
expansions/pics/12823220.jpg
expansions/pics/12823220.jpg
expansions/pics/12823220.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12856075.jpg

122 KB | W: | H:

expansions/pics/12856075.jpg

279 KB | W: | H:

expansions/pics/12856075.jpg
expansions/pics/12856075.jpg
expansions/pics/12856075.jpg
expansions/pics/12856075.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12866670.jpg

111 KB | W: | H:

expansions/pics/12866670.jpg

247 KB | W: | H:

expansions/pics/12866670.jpg
expansions/pics/12866670.jpg
expansions/pics/12866670.jpg
expansions/pics/12866670.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -28,7 +28,7 @@ function c11600545.filter(c,e,tp,m)
return m:CheckWithSumEqual(Card.GetRitualLevel,c:GetLevel(),1,99,c)
end
function c11600545.matfilter(c,tp)
return c:IsAbleToRemove() and Duel.GetMZoneCount(tp,c)
return c:IsAbleToRemove() and c:IsType(0x1)
end
function c11600545.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......@@ -39,6 +39,7 @@ function c11600545.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
end
function c11600545.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
::cancel::
local mg=Duel.GetMatchingGroup(c11600545.matfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
......@@ -56,9 +56,10 @@ end
function s.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.revealfilter,tp,LOCATION_HAND,0,1,nil)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (Duel.IsExistingMatchingCard(s.revealfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) or Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_ONFIELD,0,1,nil))
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
if not Duel.IsExistingMatchingCard(s.revealfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_ONFIELD,0,1,nil) then return true end
if Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_ONFIELD,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then return true end
local g=Duel.GetMatchingGroup(s.revealfilter,tp,LOCATION_HAND,0,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
......
......@@ -104,7 +104,7 @@ function s.spfilter(c,e,tp)
return c:IsFaceup() and c:IsCode(12866605) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED)
end
......
......@@ -34,7 +34,7 @@ function cm.thcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function cm.thfilter1(c)
return c:IsCode(16400081) and c:IsAbleToHand()
return c:IsCode(16400155) and c:IsAbleToHand()
end
function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -101,8 +101,8 @@ function cm.exctg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct1=Duel.GetMatchingGroupCount(Card.IsRace,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,RACE_AQUA)
local ct=math.max(1,ct1)
if chk==0 then return ct>0 and Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,ct,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,ct,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,ct,1-tp,LOCATION_ONFIELD+LOCATION_GRAVE)
end
......
......@@ -30,7 +30,7 @@ function s.todeck(c)
c:RegisterEffect(e1)
end
function s.rmfilter(c)
return c:IsRace(RACE_WYRM) and not c:IsType(TYPE_EFFECT)
return c:IsRace(RACE_WYRM) and not c:IsType(TYPE_EFFECT) and c:IsAbleToRemoveAsCost()
end
function s.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
......@@ -62,7 +62,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function s.filter(c,e,tp)
return c:IsType(TYPE_FUSION) and aux.IsMaterialListCode(c,16400374) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
return c:IsType(TYPE_FUSION) and aux.IsMaterialListCode(c,16400295) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
......
......@@ -97,8 +97,12 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
--pendulum set
function cm.cfilter(c)
return c:IsFaceup() and c:IsLevelBelow(4)
end
function cm.pencon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup()
local tp=e:GetHandlerPlayer()
return e:GetHandler():IsFaceup() and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.setfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelBelow(4) and c:IsAbleToHand()
......
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