Commit f45868bb authored by Momobako's avatar Momobako

Push by Appveyor

parent f622e917
No preview for this file type
......@@ -31,7 +31,7 @@ function c10113020.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(sg,REASON_COST)
end
function c10113020.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
......
......@@ -51,7 +51,7 @@ function c10113030.filter(c,e,tp)
return c:IsCode(10113040) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c10113030.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10113030.filter,tp,0x13,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x13)
end
......
......@@ -63,7 +63,7 @@ function c10113040.filter(c,e,tp)
return c:IsCode(10113050) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c10113040.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10113040.filter,tp,0x13,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x13)
end
......
......@@ -69,7 +69,7 @@ function c10113048.thfilter2(c)
end
function c10113048.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
local ft=Duel.GetMZoneCount(tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local loc=LOCATION_ONFIELD
if ft<0 then loc=LOCATION_MZONE end
local g=Duel.GetMatchingGroup(Card.IsCanBeEffectTarget,tp,loc,0,c,e)
......@@ -97,7 +97,7 @@ function c10113048.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetMZoneCount(tp)<=0
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
return
......
......@@ -55,7 +55,7 @@ function c10113050.filter(c,e,tp)
return c:IsCode(10113030) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c10113050.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10113040.filter,tp,0x13,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x13)
end
......
......@@ -83,7 +83,7 @@ function c10173011.spfilter(c)
end
function c10173011.hspcon(e,c)
if c==nil then return true end
local ft=Duel.GetMZoneCount(c:GetControler())
local ft=Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)
local g=Duel.GetMatchingGroup(c10173011.spfilter,c:GetControler(),LOCATION_MZONE+LOCATION_HAND,0,c)
if ft>0 then return
g:GetCount()>=2
......@@ -92,7 +92,7 @@ function c10173011.hspcon(e,c)
end
end
function c10173011.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft,sg=Duel.GetMZoneCount(tp)
local ft,sg=Duel.GetLocationCount(tp,LOCATION_MZONE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.GetMatchingGroup(c10173011.spfilter,c:GetControler(),LOCATION_MZONE+LOCATION_HAND,0,c)
if ft>0 then
......
......@@ -26,7 +26,7 @@ function c10173016.initial_effect(c)
end
function c10173016.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
local ft=Duel.GetMZoneCount(tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local loc=LOCATION_ONFIELD
if ft<0 then loc=LOCATION_MZONE end
local g=Duel.GetMatchingGroup(Card.IsCanBeEffectTarget,tp,loc,0,c,e)
......@@ -54,7 +54,7 @@ function c10173016.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetMZoneCount(tp)<=0
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
return
......@@ -69,7 +69,7 @@ function c10173016.setcon(e,tp,eg,ep,ev,re,r,rp)
return true
end
function c10173016.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c,ft1,ft2,ct=e:GetHandler(),Duel.GetMZoneCount(tp,LOCATION_SZONE),Duel.GetLocationCount(tp),e:GetLabel()
local c,ft1,ft2,ct=e:GetHandler(),Duel.GetLocationCount(tp,LOCATION_SZONE),Duel.GetLocationCount(tp,LOCATION_MZONE),e:GetLabel()
if chk==0 then return Duel.IsExistingMatchingCard(c10173016.setfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,ft1,ft2,ct) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,0,tp,LOCATION_DECK)
end
......@@ -77,7 +77,7 @@ function c10173016.setfilter(c,e,tp,ft1,ft2,ct)
return c:IsRace(RACE_DINOSAUR) and not c:IsForbidden() and (ft1>0 or (ft2>0 and ct>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
end
function c10173016.setop(e,tp,eg,ep,ev,re,r,rp)
local c,ft1,ft2,ct=e:GetHandler(),Duel.GetMZoneCount(tp,LOCATION_SZONE),Duel.GetLocationCount(tp),e:GetLabel()
local c,ft1,ft2,ct=e:GetHandler(),Duel.GetLocationCount(tp,LOCATION_SZONE),Duel.GetLocationCount(tp,LOCATION_MZONE),e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(10173016,4))
local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c10173016.setfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,tp,ft1,ft2,ct):GetFirst()
if not tc then return end
......
......@@ -51,12 +51,12 @@ function c10173054.filter(c,e,tp)
return c:IsCode(10113017) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c10173054.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>-1
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c10173054.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE)
end
function c10173054.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZoneCount(tp)<=0 then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c10173054.filter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then
......
......@@ -45,7 +45,7 @@ function c10173061.spfilter(c,e,tp)
end
function c10173061.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c10173061.spfilter,tp,LOCATION_GRAVE,0,1,c,e,tp) and c:IsAbleToRemove() and Duel.GetMZoneCount(tp)>0 end
if chk==0 then return Duel.IsExistingMatchingCard(c10173061.spfilter,tp,LOCATION_GRAVE,0,1,c,e,tp) and c:IsAbleToRemove() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,c,2,tp,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x13)
end
......@@ -54,7 +54,7 @@ function c10173061.spop2(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tc=Duel.SelectMatchingCard(tp,c10173061.spfilter,tp,LOCATION_GRAVE,0,1,1,c,e,tp):GetFirst()
if tc and Duel.Remove(Group.FromCards(c,tc),POS_FACEUP,REASON_EFFECT)~=0 and (tc:IsLocation(LOCATION_REMOVED) or c:IsLocation(LOCATION_REMOVED)) and Duel.GetMZoneCount(tp)>0 then
if tc and Duel.Remove(Group.FromCards(c,tc),POS_FACEUP,REASON_EFFECT)~=0 and (tc:IsLocation(LOCATION_REMOVED) or c:IsLocation(LOCATION_REMOVED)) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c10173061.spfilter2,tp,0x13,0,1,1,nil,e,tp)
......@@ -70,7 +70,7 @@ function c10173061.spcon(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(c10173061.cfilter,1,nil,tp)
end
function c10173061.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,LOCATION_GRAVE)
end
......
......@@ -45,7 +45,7 @@ function c10173062.spfilter(c,e,tp)
end
function c10173062.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c10173062.spfilter,tp,LOCATION_GRAVE,0,1,c,e,tp) and c:IsAbleToRemove() and Duel.GetMZoneCount(tp)>0 end
if chk==0 then return Duel.IsExistingMatchingCard(c10173062.spfilter,tp,LOCATION_GRAVE,0,1,c,e,tp) and c:IsAbleToRemove() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,c,2,tp,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x13)
end
......@@ -54,7 +54,7 @@ function c10173062.spop2(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tc=Duel.SelectMatchingCard(tp,c10173062.spfilter,tp,LOCATION_GRAVE,0,1,1,c,e,tp):GetFirst()
if tc and Duel.Remove(Group.FromCards(c,tc),POS_FACEUP,REASON_EFFECT)~=0 and (tc:IsLocation(LOCATION_REMOVED) or c:IsLocation(LOCATION_REMOVED)) and Duel.GetMZoneCount(tp)>0 then
if tc and Duel.Remove(Group.FromCards(c,tc),POS_FACEUP,REASON_EFFECT)~=0 and (tc:IsLocation(LOCATION_REMOVED) or c:IsLocation(LOCATION_REMOVED)) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c10173062.spfilter2,tp,0x13,0,1,1,nil,e,tp)
......@@ -70,7 +70,7 @@ function c10173062.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c10173062.cfilter,1,nil,tp)
end
function c10173062.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,LOCATION_GRAVE)
end
......
......@@ -35,13 +35,13 @@ function c10173063.spfilter2(c,e,tp)
end
function c10173063.sptg3(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToRemove() and Duel.IsExistingMatchingCard(c10173063.spfilter2,tp,0x13,0,1,c,e,tp) and Duel.GetMZoneCount(tp)>0 end
if chk==0 then return c:IsAbleToRemove() and Duel.IsExistingMatchingCard(c10173063.spfilter2,tp,0x13,0,1,c,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,c,1,tp,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0x13)
end
function c10173063.spop3(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.Remove(c,POS_FACEUP,REASON_EFFECT)~=0 and c:IsLocation(LOCATION_REMOVED) and Duel.GetMZoneCount(tp)>0 then
if c:IsRelateToEffect(e) and Duel.Remove(c,POS_FACEUP,REASON_EFFECT)~=0 and c:IsLocation(LOCATION_REMOVED) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c10173063.spfilter2,tp,0x13,0,1,1,nil,e,tp)
......@@ -57,7 +57,7 @@ function c10173063.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then
local g=Duel.GetMatchingGroup(c10173063.cfilter,tp,LOCATION_GRAVE,0,c)
return g:GetCount()>1 and g:FilterCount(Card.IsSetCard,nil,0xc332)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetMZoneCount(tp)>0
return g:GetCount()>1 and g:FilterCount(Card.IsSetCard,nil,0xc332)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,tp,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,LOCATION_GRAVE)
......@@ -72,7 +72,7 @@ function c10173063.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=g:Select(tp,1,1,nil)
g1:Merge(g2)
if Duel.Remove(g1,POS_FACEUP,REASON_EFFECT)~=0 and g1:FilterCount(Card.IsLocation,nil,LOCATION_REMOVED)==2 and Duel.GetMZoneCount(tp)>0 and c:IsRelateToEffect(e) then
if Duel.Remove(g1,POS_FACEUP,REASON_EFFECT)~=0 and g1:FilterCount(Card.IsLocation,nil,LOCATION_REMOVED)==2 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsRelateToEffect(e) then
Duel.BreakEffect()
Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
end
......@@ -81,12 +81,12 @@ function c10173063.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c10173063.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10173063.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end
function c10173063.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZoneCount(tp)<=0 then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c10173063.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
......
......@@ -105,7 +105,7 @@ function c10173066.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c10173066.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c10173066.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetMZoneCount(tp)>-1
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingTarget(c10173066.spfilter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c10173066.spfilter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
......@@ -115,7 +115,7 @@ end
function c10173066.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if Duel.GetMZoneCount(tp)<=0 then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if tc:IsRelateToEffect(e) then
if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 and c:GetFlagEffect(10173066)~=0 and Duel.SelectYesNo(tp,aux.Stringid(10173066,3)) then
Duel.Equip(tp,c,tc)
......
......@@ -57,7 +57,7 @@ function c10173068.cfilter(c,code)
end
function c10173068.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.GetMZoneCount(tp)>0 and c:GetFlagEffect(10173068)>0 and Duel.GetFlagEffect(tp,10173068)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:GetFlagEffect(10173068)>0 and Duel.GetFlagEffect(tp,10173068)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end
......@@ -80,7 +80,7 @@ function c10173068.aop(e,tp,eg,ep,ev,re,r,rp)
e:SetLabel(ac)
e:GetHandler():RegisterFlagEffect(10173068,RESET_EVENT+0x1fe0000,0,0)
local g=Duel.GetMatchingGroup(c10173068.spfilter,tp,LOCATION_REMOVED,0,nil,e,tp,ac)
if g:GetCount()>0 and Duel.GetMZoneCount(tp)>0 and Duel.SelectYesNo(tp,aux.Stringid(10173068,2)) then
if g:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(10173068,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=g:Select(tp,1,1,nil):GetFirst()
......
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