Commit 0f90225e authored by TanakaKotoha's avatar TanakaKotoha

nanodesu

parent a4e46478
......@@ -80,6 +80,12 @@ local c=e:GetHandler()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
tc:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
e3:SetValue(1000)
tc:RegisterEffect(e3)
end
function c33400351.retg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -4,49 +4,49 @@
local s = c33701016
local id = 33701016
function s.initial_effect(c)
c:SetSPSummonOnce(id)
--Special Summon
local e1 = Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetDescription(aux.Stringid(id, 0))
e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_PHASE + PHASE_END)
e1:SetRange(LOCATION_HAND + LOCATION_GRAVE)
e1:SetCountLimit(1)
e1:SetCondition(s.spcon)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
c:RegisterEffect(e1)
c:SetSPSummonOnce(id)
--Special Summon
local e1 = Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetDescription(aux.Stringid(id, 0))
e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_PHASE + PHASE_END)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1)
e1:SetCondition(s.spcon)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
c:RegisterEffect(e1)
end
function s.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0x144e)
return c:IsFacedown() or not c:IsSetCard(0x144e)
end
function s.spcon(e, tp, eg, ep, ev, re, r, rp)
return not Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_MZONE, 0, 1, nil)
return Duel.GetTurnPlayer() == tp and not Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_MZONE, 0, 1, nil)
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
local c = e:GetHandler()
if chk == 0 then
return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, c, 1, 0, 0)
local c = e:GetHandler()
if chk == 0 then
return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, c, 1, 0, 0)
end
function s.spop(e, tp, eg, ep, ev, re, r, rp)
local c = e:GetHandler()
if
c:IsRelateToEffect(e) and Duel.SpecialSummon(c, 0, tp, tp, false, false, POS_FACEUP) ~= 0 and
Duel.SelectYesNo(tp, aux.Stringid(id, 1))
then
local e1 = Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DRAW_COUNT)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1, 0)
e1:SetValue(3) --1 normal draw + 2 "additional" cards
e1:SetReset(EVENT_PHASE + PHASE_STANDBY + RESET_SELF_TURN)
Duel.RegisterEffect(e1, tp)
end
local c = e:GetHandler()
if
c:IsRelateToEffect(e) and Duel.SpecialSummon(c, 0, tp, tp, false, false, POS_FACEUP) ~= 0 and
Duel.SelectYesNo(tp, aux.Stringid(id, 1))
then
local e1 = Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DRAW_COUNT)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1, 0)
e1:SetValue(3) --1 normal draw + 2 "additional" cards
e1:SetReset(EVENT_PHASE + PHASE_STANDBY + RESET_SELF_TURN)
Duel.RegisterEffect(e1, tp)
end
end
function s.recon(e, tp, eg, ep, ev, re, r, rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end
--雨过天晴之地
function c81010058.initial_effect(c)
function c81010034.initial_effect(c)
aux.AddCodeList(c,81010004)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
e0:SetOperation(c81010058.sumsuc)
e0:SetOperation(c81010034.sumsuc)
c:RegisterEffect(e0)
--change
local e1=Effect.CreateEffect(c)
......@@ -21,29 +21,29 @@ function c81010058.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_FZONE)
e2:SetCountLimit(1,81010058)
e2:SetCondition(c81010058.spcon)
e2:SetCost(c81010058.cost)
e2:SetTarget(c81010058.sptg)
e2:SetOperation(c81010058.spop)
e2:SetCountLimit(1,81010034)
e2:SetCondition(c81010034.spcon)
e2:SetCost(c81010034.cost)
e2:SetTarget(c81010034.sptg)
e2:SetOperation(c81010034.spop)
c:RegisterEffect(e2)
--search
local e5=Effect.CreateEffect(c)
e5:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_GRAVE)
e5:SetCountLimit(1,81010958)
e5:SetCost(c81010058.whcost)
e5:SetTarget(c81010058.whtg)
e5:SetOperation(c81010058.whop)
e5:SetCountLimit(1,81010934)
e5:SetCost(c81010034.whcost)
e5:SetTarget(c81010034.whtg)
e5:SetOperation(c81010034.whop)
c:RegisterEffect(e5)
Duel.AddCustomActivityCounter(81010058,ACTIVITY_SPSUMMON,c81010058.counterfilter)
Duel.AddCustomActivityCounter(81010034,ACTIVITY_SPSUMMON,c81010034.counterfilter)
end
function c81010058.counterfilter(c)
function c81010034.counterfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND)
end
function c81010058.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(81010058,tp,ACTIVITY_SPSUMMON)==0 end
function c81010034.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(81010034,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
......@@ -51,58 +51,58 @@ function c81010058.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
e1:SetLabelObject(e)
e1:SetTarget(c81010058.splimit)
e1:SetTarget(c81010034.splimit)
Duel.RegisterEffect(e1,tp)
end
function c81010058.splimit(e,c,sump,sumtype,sumpos,targetp,se)
function c81010034.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsAttribute(ATTRIBUTE_WIND)
end
function c81010058.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81010058,2))
function c81010034.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81010034,2))
end
function c81010058.cfilter(c)
function c81010034.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_TOKEN) and c:IsAttribute(ATTRIBUTE_WIND)
end
function c81010058.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c81010058.cfilter,tp,LOCATION_MZONE,0,1,nil)
function c81010034.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c81010034.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c81010058.spfilter(c,e,tp)
function c81010034.spfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c81010058.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c81010058.spfilter(chkc,e,tp) end
function c81010034.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c81010034.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c81010058.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
and Duel.IsExistingTarget(c81010034.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c81010058.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectTarget(tp,c81010034.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c81010058.spop(e,tp,eg,ep,ev,re,r,rp)
function c81010034.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
function c81010058.dfilter(c)
function c81010034.dfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsDiscardable()
end
function c81010058.whcost(e,tp,eg,ep,ev,re,r,rp,chk)
function c81010034.whcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c81010058.dfilter,tp,LOCATION_HAND,0,1,nil) end
and Duel.IsExistingMatchingCard(c81010034.dfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
Duel.DiscardHand(tp,c81010058.dfilter,1,1,REASON_COST+REASON_DISCARD)
Duel.DiscardHand(tp,c81010034.dfilter,1,1,REASON_COST+REASON_DISCARD)
end
function c81010058.filter(c)
function c81010034.filter(c)
return c:IsCode(81010004,26803006) and c:IsAbleToHand()
end
function c81010058.whtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c81010058.filter,tp,LOCATION_DECK,0,1,nil) end
function c81010034.whtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c81010034.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c81010058.whop(e,tp,eg,ep,ev,re,r,rp)
function c81010034.whop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c81010058.filter,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c81010034.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
......
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