Commit 1a659986 authored by Tachibana's avatar Tachibana

sign out

parent 38264dd1
--猫耳歌姬 凑友希那 --猫耳歌姬 凑友希那
function c65010015.initial_effect(c) function c65010015.initial_effect(c)
local e1=Effect.CreateEffect(c) --special summon
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND) local e2=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O) e2:SetDescription(aux.Stringid(65010015,1))
e1:SetRange(LOCATION_HAND) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_FREE_CHAIN) e2:SetType(EFFECT_TYPE_QUICK_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,65010015) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c65010015.tg) e2:SetRange(LOCATION_HAND)
e1:SetOperation(c65010015.op) e2:SetCountLimit(1,65010015)
c:RegisterEffect(e1) e2:SetTarget(c65010015.sptg)
e2:SetOperation(c65010015.spop)
c:RegisterEffect(e2)
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK)
...@@ -17,67 +19,67 @@ function c65010015.initial_effect(c) ...@@ -17,67 +19,67 @@ function c65010015.initial_effect(c)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,65010016) e2:SetCountLimit(1,65010016)
e2:SetTarget(c65010015.sptg) e2:SetTarget(c65010015.sstg)
e2:SetOperation(c65010015.spop) e2:SetOperation(c65010015.ssop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c65010015.fil(c,tp) function c65010015.thfilter(c,tp)
return c:IsFaceup() and c:IsAbleToHand() and Duel.GetMZoneCount(tp,c,tp)>0 return c:IsFaceup() and c:IsAbleToHand() and Duel.GetMZoneCount(tp,c)
end end
function c65010015.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65010015.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsFaceup() and chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsAbleToHand() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c65010015.thfilter(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c65010015.fil,tp,LOCATION_MZONE,0,1,nil,tp) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
local g=Duel.SelectTarget(tp,c65010015.fil,tp,LOCATION_MZONE,0,1,1,nil,tp) and Duel.IsExistingTarget(c65010015.thfilter,tp,LOCATION_MZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c65010015.thfilter,tp,LOCATION_MZONE,0,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c65010015.op(e,tp,eg,ep,ev,re,r,rp) function c65010015.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND) and c:IsRelateToEffect(e) then
if Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)
end
end end
end end
function c65010015.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK)
end
function c65010015.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65010015.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsCanBeSpecialSummoned(e,0,tp,false,false) and chkc:IsControler(tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c65010015.spfilter(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetMatchingGroupCount(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil)>0 end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
local g=Duel.SelectTarget(tp,Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) and Duel.IsExistingTarget(c65010015.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetMatchingGroupCount(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c65010015.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND)
end end
function c65010015.spop(e,tp,eg,ep,ev,re,r,rp) function c65010015.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local c=e:GetHandler() local c=e:GetHandler()
if tc:IsRelateToEffect(e) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then local tc=Duel.GetFirstTarget()
if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE) e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(RESET_TURN_SET) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2)
tc:RegisterEffect(e2) Duel.SpecialSummonComplete()
Duel.SpecialSummonComplete() local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil)
local race=tc:GetRace() if g:GetCount()>0 then
--race local sg=g:RandomSelect(tp,1)
Duel.SendtoDeck(sg,nil,1,REASON_EFFECT)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetCode(EFFECT_CHANGE_RACE) e3:SetCode(EFFECT_CHANGE_RACE)
e3:SetValue(race) e3:SetValue(tc:GetRace())
e3:SetReset(RESET_EVENT+RESETS_STANDARD) e3:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil)
if g:GetCount()>0 then
local sg=g:RandomSelect(tp,1)
Duel.SendtoDeck(sg,nil,1,REASON_EFFECT)
end
end end
end end
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
......
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