Commit 5f89fef8 authored by Tachibana's avatar Tachibana

sign out

parent 1a659986
...@@ -13,15 +13,15 @@ function c65010015.initial_effect(c) ...@@ -13,15 +13,15 @@ function c65010015.initial_effect(c)
e2:SetOperation(c65010015.spop) e2:SetOperation(c65010015.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK) e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,65010016) e3:SetCountLimit(1,65010016)
e2:SetTarget(c65010015.sstg) e3:SetTarget(c65010015.sstg)
e2:SetOperation(c65010015.ssop) e3:SetOperation(c65010015.ssop)
c:RegisterEffect(e2) c:RegisterEffect(e3)
end end
function c65010015.thfilter(c,tp) function c65010015.thfilter(c,tp)
return c:IsFaceup() and c:IsAbleToHand() and Duel.GetMZoneCount(tp,c) return c:IsFaceup() and c:IsAbleToHand() and Duel.GetMZoneCount(tp,c)
...@@ -42,22 +42,22 @@ function c65010015.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,22 +42,22 @@ function c65010015.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c65010015.spfilter(c,e,tp) function c65010015.ssfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK)
end end
function c65010015.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65010015.sstg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c65010015.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c65010015.ssfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
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 and Duel.IsExistingTarget(c65010015.ssfilter,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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c65010015.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c65010015.ssfilter,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.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then if tc:IsRelateToEffect(e) and Duel.ssecialSummonStep(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)
...@@ -68,7 +68,7 @@ function c65010015.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c65010015.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
Duel.SpecialSummonComplete() Duel.ssecialSummonComplete()
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
local sg=g:RandomSelect(tp,1) local sg=g:RandomSelect(tp,1)
......
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