Commit a2aa21e9 authored by TanakaKotoha's avatar TanakaKotoha

YUKIMI

parent 19c1aeba
......@@ -39,7 +39,6 @@ function c65030023.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
tc:RegisterFlagEffect(65030023,RESET_EVENT+RESETS_STANDARD,0,1)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_LEAVE_FIELD)
......@@ -55,7 +54,7 @@ function c65030023.op(e,tp,eg,ep,ev,re,r,rp)
end
function c65030023.thcon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
return eg:IsContains(tc)
return eg:IsContains(tc)
end
function c65030023.spfil(c,e,tp)
return c:IsSetCard(0xcda1) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......@@ -64,7 +63,7 @@ function c65030023.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(c65030023.spfil,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_CARD,0,65030023)
local num=1
if Duel.GetFlagEffect(tp,65030023)==0 then num=2 end
if Duel.GetFlagEffect(tp,65030023)==0 and not Duel.IsPlayerAffectedByEffect(tp,59822133) then num=2 end
local g2=Duel.SelectMatchingCard(tp,c65030023.spfil,tp,LOCATION_DECK,0,1,num,nil,e,tp)
if Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP)==2 then
Duel.RegisterFlagEffect(tp,65030023,RESET_PHASE+PHASE_END,0,1)
......
......@@ -53,11 +53,11 @@ function c65030027.fil2(c)
return c:IsSetCard(0xcda1) and c:IsAbleToGrave() and c:IsType(TYPE_MONSTER)
end
function c65030027.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c65030027.filter(chkc,e,tp) end
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c65030027.filter(chkc,e,tp) and chkc:IsControler(tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c65030027.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,tp) and Duel.IsExistingMatchingCard(c65030027.fil,tp,LOCATION_DECK,0,1,nil) end
and Duel.IsExistingTarget(c65030027.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c65030027.fil,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c65030027.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp)
local g=Duel.SelectTarget(tp,c65030027.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
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