Commit 526367cb authored by TanakaKotoha's avatar TanakaKotoha

y1s1

parent 4bf1403d
No preview for this file type
......@@ -15,21 +15,21 @@ function c112027.initial_effect(c)
c:RegisterEffect(e1)
end
function c112027.thfilter(c)
return c:IsSetCard(0xca9) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0xa009) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function c112027.lzcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c112013.thfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
local g=Duel.SelectMatchingCard(tp,c112013.thfilter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
if chk==0 then return Duel.IsExistingMatchingCard(c112027.thfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
local g=Duel.SelectMatchingCard(tp,c112027.thfilter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
end
function c112027.thfilter2(c,e,tp,zone)
return ((c:IsSetCard(0xca9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK,tp,zone and c:IsType(TYPE_MONSTER))) or (c:IsSetCard(0xca9) and c:IsType(TYPE_LINK) and c:IsLinkBelow(2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK,tp,zone))) and not c:IsCode(112019)
return c:IsSetCard(0xa009) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK,tp,zone) and c:IsType(TYPE_MONSTER)
end
function c112027.lztg(e,tp,eg,ep,ev,re,r,rp,chk)
local zone=e:GetHandler():GetLinkedZone(tp)
if chk==0 then return Duel.IsExistingMatchingCard(c112013.thfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp,zone) and Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>=1 end
if chk==0 then return Duel.IsExistingMatchingCard(c112027.thfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp,zone) and Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c112013.thfilter2,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,zone)
local g=Duel.SelectMatchingCard(tp,c112027.thfilter2,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,zone)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,LOCATION_GRAVE)
end
......
......@@ -35,7 +35,7 @@ function c112028.lzcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST)
end
function c112028.thfilter2(c,e,tp)
return c:IsSetCard(0xca9) and c:IsAbleToHand()
return c:IsSetCard(0xa009) and c:IsAbleToHand()
end
function c112028.lztg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c112028.thfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
......@@ -50,14 +50,15 @@ function c112028.lzop(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ConfirmCards(1-tp,tc)
end
function c112028.thfilter(c,e,tp)
return c:IsSetCard(0xca9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLink(1)
return c:IsSetCard(0xa009) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLink(1) and (c:IsLocation(LOCATION_GRAVE) and Duel.GetMZoneCount(tp)>0
or c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0)
end
function c112028.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_EFFECT)
end
function c112028.cfil(c)
return c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_HAND) and c:IsSetCard(0xca9)
return c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_HAND) and c:IsSetCard(0xa009)
end
function c112028.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c112028.thfilter,tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil,e,tp) and eg:IsExists(c112028.cfil,1,nil) end
......
......@@ -60,11 +60,11 @@ function c112043.disfilter(c)
return c:IsAbleToDeck() and c:IsType(TYPE_MONSTER)
end
function c112043.spfilter(c,e,tp)
return c:IsSetCard(0xca9) and c:IsAbleToDeck() and c:IsType(TYPE_MONSTER)
return c:IsSetCard(0xa009) and c:IsAbleToDeck() and c:IsType(TYPE_MONSTER)
end
function c112043.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c112043.disfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingTarget(c112043.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
if chk==0 then return Duel.IsExistingMatchingCard(c112043.disfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingTarget(c112043.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g2=Duel.SelectTarget(tp,c112043.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
e:SetLabelObject(g2:GetFirst())
......@@ -79,7 +79,7 @@ function c112043.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(g1,nil,2,REASON_EFFECT)
end
function c112043.cfil(c)
return c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_HAND) and c:IsSetCard(0xca9)
return c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_HAND) and c:IsSetCard(0xa009)
end
function c112043.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c112043.cfil,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