Commit faa28066 authored by TanakaKotoha's avatar TanakaKotoha

delete

parent 8ec40764
No preview for this file type
--橘花音·青羽之音
function c81011125.initial_effect(c)
function c81011113.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,81011125)
e1:SetCondition(c81011125.spcon)
e1:SetTarget(c81011125.sptg)
e1:SetOperation(c81011125.spop)
e1:SetCountLimit(1,81011113)
e1:SetCondition(c81011113.spcon)
e1:SetTarget(c81011113.sptg)
e1:SetOperation(c81011113.spop)
c:RegisterEffect(e1)
--special summon
local e3=Effect.CreateEffect(c)
......@@ -17,43 +17,43 @@ function c81011125.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetCountLimit(1,81011125)
e3:SetCondition(c81011125.sscon)
e3:SetTarget(c81011125.sstg)
e3:SetOperation(c81011125.ssop)
e3:SetCountLimit(1,81011113)
e3:SetCondition(c81011113.sscon)
e3:SetTarget(c81011113.sstg)
e3:SetOperation(c81011113.ssop)
c:RegisterEffect(e3)
end
function c81011125.cfilter(c)
function c81011113.cfilter(c)
return c:IsFaceup() and c:IsAttack(1550) and c:IsDefense(1050)
end
function c81011125.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c81011125.cfilter,1,nil)
function c81011113.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c81011113.cfilter,1,nil)
end
function c81011125.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c81011113.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
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
function c81011125.spop(e,tp,eg,ep,ev,re,r,rp)
function c81011113.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function c81011125.sscon(e,tp,eg,ep,ev,re,r,rp)
function c81011113.sscon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_EFFECT)
end
function c81011125.ssfilter(c,e,tp)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsAttack(1550) and c:IsDefense(1050) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and not c:IsCode(81011125)
function c81011113.ssfilter(c,e,tp)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsAttack(1550) and c:IsDefense(1050) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and not c:IsCode(81011113)
end
function c81011125.sstg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and c81011125.ssfilter(chkc,e,tp) end
function c81011113.sstg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and c81011113.ssfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c81011125.ssfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
and Duel.IsExistingTarget(c81011113.ssfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c81011125.ssfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
local g=Duel.SelectTarget(tp,c81011113.ssfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c81011125.ssop(e,tp,eg,ep,ev,re,r,rp)
function c81011113.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then
......@@ -74,10 +74,10 @@ function c81011125.ssop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetTarget(c81011125.splimit)
e1:SetTarget(c81011113.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c81011125.splimit(e,c)
function c81011113.splimit(e,c)
return not ((c:IsAttack(1550) and c:IsDefense(1050)) or (c:IsType(TYPE_RITUAL) and c:IsType(TYPE_PENDULUM)))
end
--橘花音·月色之音
function c81011124.initial_effect(c)
function c81011114.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,81011124)
e1:SetCost(c81011124.spcost)
e1:SetTarget(c81011124.sptg)
e1:SetOperation(c81011124.spop)
e1:SetCountLimit(1,81011114)
e1:SetCost(c81011114.spcost)
e1:SetTarget(c81011114.sptg)
e1:SetOperation(c81011114.spop)
c:RegisterEffect(e1)
--remove
local e2=Effect.CreateEffect(c)
......@@ -16,38 +16,38 @@ function c81011124.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_RELEASE)
e2:SetCountLimit(1,81011124)
e2:SetCondition(c81011124.rmcon)
e2:SetTarget(c81011124.rmtg)
e2:SetOperation(c81011124.rmop)
e2:SetCountLimit(1,81011114)
e2:SetCondition(c81011114.rmcon)
e2:SetTarget(c81011114.rmtg)
e2:SetOperation(c81011114.rmop)
c:RegisterEffect(e2)
end
function c81011124.filter(c,e,tp)
return c:IsAttack(1550) and c:IsDefense(1050) and not c:IsCode(81011124) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
function c81011114.filter(c,e,tp)
return c:IsAttack(1550) and c:IsDefense(1050) and not c:IsCode(81011114) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c81011124.costfilter(c)
function c81011114.costfilter(c)
return bit.band(c:GetType(),0x81)==0x81 and c:IsType(TYPE_PENDULUM) and not c:IsPublic()
end
function c81011124.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c81011124.costfilter,tp,LOCATION_HAND,0,1,nil) end
function c81011114.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c81011114.costfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,c81011124.costfilter,tp,LOCATION_HAND,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c81011114.costfilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp)
end
function c81011124.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c81011114.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>1
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingMatchingCard(c81011124.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c81011114.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_HAND+LOCATION_DECK)
end
function c81011124.spop(e,tp,eg,ep,ev,re,r,rp)
function c81011114.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c81011124.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,c81011114.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
g:AddCard(e:GetHandler())
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
......@@ -57,21 +57,21 @@ function c81011124.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetTarget(c81011124.splimit)
e1:SetTarget(c81011114.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c81011124.splimit(e,c)
function c81011114.splimit(e,c)
return not ((c:IsAttack(1550) and c:IsDefense(1050)) or (c:IsType(TYPE_RITUAL) and c:IsType(TYPE_PENDULUM)))
end
function c81011124.rmcon(e,tp,eg,ep,ev,re,r,rp)
function c81011114.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_RITUAL)
end
function c81011124.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c81011114.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_HAND)
end
function c81011124.rmop(e,tp,eg,ep,ev,re,r,rp)
function c81011114.rmop(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if hg:GetCount()==0 then return end
Duel.ConfirmCards(tp,hg)
......@@ -88,22 +88,22 @@ function c81011124.rmop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCountLimit(1)
e1:SetLabel(fid)
e1:SetLabelObject(tc)
e1:SetCondition(c81011124.retcon)
e1:SetOperation(c81011124.retop)
e1:SetCondition(c81011114.retcon)
e1:SetOperation(c81011114.retop)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
tc:RegisterFlagEffect(81011124,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
tc:RegisterFlagEffect(81011114,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
end
function c81011124.retcon(e,tp,eg,ep,ev,re,r,rp)
function c81011114.retcon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:GetFlagEffectLabel(81011124)==e:GetLabel() then
if tc:GetFlagEffectLabel(81011114)==e:GetLabel() then
return true
else
e:Reset()
return false
end
end
function c81011124.retop(e,tp,eg,ep,ev,re,r,rp)
function c81011114.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.SendtoHand(tc,nil,REASON_EFFECT)
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