Commit b014d383 authored by TanakaKotoha's avatar TanakaKotoha

2000 years later

parent 1905010b
No preview for this file type
......@@ -22,7 +22,7 @@ function s.initial_effect(c)
--negate
local e2 = Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id, 1))
e2:SetCategory(CATEGORY_DISABLE)
-- e2:SetCategory(CATEGORY_DISABLE)
e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DELAY)
......@@ -49,23 +49,25 @@ end
function s.spfilter(c)
return c:IsSetCard(0x144e) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end
function s.MZFilter(c, tp)
return c:IsLocation(LOCATION_MZONE) and c:GetSequence() < 5 and c:IsControler(tp)
end
function s.ChkfMMZ(sumcount)
return function(sg, e, tp, mg)
return sg:FilterCount(s.MZFilter, nil, tp) + Duel.GetLocationCount(tp, LOCATION_MZONE) >= sumcount
end
end
--function s.MZFilter(c, tp)
-- return c:IsLocation(LOCATION_MZONE) and c:GetSequence() < 5 and c:IsControler(tp)
--end
--function s.ChkfMMZ(sumcount)
-- return function(sg, e, tp, mg)
-- return sg:FilterCount(s.MZFilter, nil, tp) + Duel.GetLocationCount(tp, LOCATION_MZONE) >= sumcount
-- end
--end
function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
local rg = Duel.GetMatchingGroup(s.spfilter, tp, LOCATION_HAND + LOCATION_GRAVE, 0, e:GetHandler())
if chk == 0 then
return Duel.GetLocationCount(tp, LOCATION_MZONE) > -2 and #rg > 1 and
rg:CheckSubGroup(s.ChkfMMZ(1), 2, 2, tp)
end
-- if chk == 0 then
-- return Duel.GetLocationCount(tp, LOCATION_MZONE) > -2 and #rg > 1 and
-- rg:CheckSubGroup(s.ChkfMMZ(1), 2, 2, tp)
-- end
if rg:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g = rg:SelectSubGroup(s.ChkfMMZ(1), tp, 2, 2, tp)
local g=rg:Select(tp,2,2,nil)
Duel.Remove(g, POS_FACEUP, REASON_COST)
end
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
local c = e:GetHandler()
......@@ -76,25 +78,25 @@ function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
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, true, true, POS_FACEUP) ~= 0 then
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c, 1, tp, tp, true, true, POS_FACEUP) ~= 0 then
c:CompleteProcedure()
c:RegisterFlagEffect(id, RESET_EVENT + RESETS_STANDARD, 0, 0)
-- c:RegisterFlagEffect(id, RESET_EVENT + RESETS_STANDARD, 0, 0)
end
end
function s.negop(e, tp, eg, ep, ev, re, r, rp)
local c = e:GetHandler()
if c:GetFlagEffect(id) ~= 0 then
if not c:GetSummonType()==SUMMON_TYPE_SPECIAL+1 then return end
local e1 = Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE)
e1:SetTargetRange(0, LOCATION_ONFIELD)
e1:SetTarget(s.disable)
e1:SetReset(RESET_PHASE + PHASE_END + RESET_OPPO_TURN)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
e1:SetLabel(c:GetFieldID())
Duel.RegisterEffect(e1, tp)
end
end
function s.disable(e, c)
return c ~= e:GetHandler() and aux.disfilter1(c)
function s.disable(e,c)
return c:GetFieldID()~=e:GetLabel() and (not c:IsType(TYPE_MONSTER) or (c:IsType(TYPE_EFFECT) or bit.band(c:GetOriginalType(),TYPE_EFFECT)==TYPE_EFFECT))
end
function s.spfilter2(c, e, tp, zone)
return c:IsSetCard(0x144e) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false, POS_FACEUP, tp, zone)
......
......@@ -49,23 +49,26 @@ end
function s.spfilter(c)
return c:IsSetCard(0x144e) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end
function s.MZFilter(c, tp)
return c:IsLocation(LOCATION_MZONE) and c:GetSequence() < 5 and c:IsControler(tp)
end
function s.ChkfMMZ(sumcount)
return function(sg, tp)
return sg:FilterCount(s.MZFilter, nil, tp) + Duel.GetLocationCount(tp, LOCATION_MZONE) >= sumcount
end
end
--function s.MZFilter(c, tp)
-- return c:IsLocation(LOCATION_MZONE) and c:GetSequence() < 5 and c:IsControler(tp)
--end
--function s.ChkfMMZ(sumcount)
-- return function(sg, tp)
-- return sg:FilterCount(s.MZFilter, nil, tp) + Duel.GetLocationCount(tp, LOCATION_MZONE) >= sumcount
-- end
--end
function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
local rg = Duel.GetMatchingGroup(s.spfilter, tp, LOCATION_HAND + LOCATION_MZONE + LOCATION_GRAVE, 0, e:GetHandler())
if chk == 0 then
return Duel.GetLocationCount(tp, LOCATION_MZONE) > -3 and #rg > 1 and
rg:CheckSubGroup(s.ChkfMMZ(1), 3, 3, tp)
end
local rg = Duel.GetMatchingGroup(s.spfilter, tp, LOCATION_HAND + LOCATION_GRAVE, 0, e:GetHandler())
-- if chk == 0 then
-- return Duel.GetLocationCount(tp, LOCATION_MZONE) > -3 and #rg > 1 and
-- rg:CheckSubGroup(s.ChkfMMZ(1), 3, 3, tp)
-- end
-- Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
if rg:GetCount()>2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g = rg:SelectSubGroup(s.ChkfMMZ(1), 3, 3, tp)
local g=rg:Select(tp,3,3,nil)
Duel.Remove(g, POS_FACEUP, REASON_COST)
end
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
local c = e:GetHandler()
......
......@@ -30,13 +30,14 @@ function s.initial_effect(c)
e2:SetTarget(s.drtg)
e2:SetOperation(s.drop)
c:RegisterEffect(e2)
Duel.AddCustomActivityCounter(33701019,ACTIVITY_CHAIN,aux.FALSE)
end
function s.xcheck(g, lc, tp)
return g:IsExists(Card.IsXyzSetCard, 1, nil, 0x144e)
end
function s.spcon(e, tp, eg, ep, ev, re, r, rp)
local ct = Duel.GetActivityCount(tp, ACTIVITY_CHAIN)
return Duel.GetTurnPlayer() == tp and ct == 0
return Duel.GetTurnPlayer() == tp
and Duel.GetCustomActivityCount(33701019,tp,ACTIVITY_CHAIN)==0
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
local c = e:GetHandler()
......
......@@ -6,23 +6,23 @@ local id = 33701021
function s.initial_effect(c)
--Activate
local e1 = Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND + CATEGORY_SEARCH)
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
--Skip phases
local e2 = Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_FIELD)
e2:SetCode(EVENT_PHASE + PHASE_STANDBY)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_FZONE)
e2:SetCountLimit(1)
e2:SetOperation(s.skipop)
c:RegisterEffect(e2)
--recover
local e3 = Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_PHASE + PHASE_END)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1)
e3:SetCondition(s.thcon)
......@@ -34,14 +34,12 @@ function s.tgfilter(c)
return c:IsSetCard(0x144e) and c:IsAbleToGrave()
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
if not e:GetHandler():IsRelateToEffect(e) then
return
end
local g = Duel.GetMatchingGroup(s.tgfilter, tp, LOCATION_DECK, 0, nil)
if g:CheckSubGroup(aux.dncheck, 1, 3) and Duel.SelectYesNo(tp, aux.Stringid(id, 0)) then
if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local dg = g:SelectSubGroup(aux.dncheck, tp, 1, 3)
Duel.SendtoGrave(dg, REASON_EFFECT)
local dg=g:Select(tp,1,3,nil)
Duel.SendtoGrave(dg,REASON_EFFECT)
end
end
function s.skipop(e, tp, eg, ep, ev, re, r, rp)
......
......@@ -28,17 +28,36 @@ end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
return Duel.GetTurnPlayer() ~= tp and Duel.IsAbleToEnterBP()
end
function s.rfilter(c,tp)
return c:IsSetCard(0x144e) and (c:IsControler(tp) or c:IsFaceup())
end
function s.fgoal(sg,tp)
if sg:GetCount()>0 and Duel.GetMZoneCount(tp,sg)>0 then
Duel.SetSelectedCard(sg)
return Duel.CheckReleaseGroup(tp,nil,0,nil)
else return false end
end
function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
if chk == 0 then
return Duel.CheckReleaseGroupCost(tp, Card.IsSetCard, 2, false, aux.ReleaseCheckMMZ, nil, 0x144e)
end
local g = Duel.SelectReleaseGroupCost(tp, Card.IsSetCard, 2, 2, false, aux.ReleaseCheckMMZ, nil, 0x144e)
Duel.Release(g, REASON_COST)
-- if chk == 0 then
-- return Duel.CheckReleaseGroupCost(tp, Card.IsSetCard, 2, false, aux.ReleaseCheckMMZ, nil, 0x144e)
-- end
-- local g = Duel.SelectReleaseGroupCost(tp, Card.IsSetCard, 2, 2, false, aux.ReleaseCheckMMZ, nil, 0x144e)
-- Duel.Release(g, REASON_COST)
local rg=Duel.GetReleaseGroup(tp):Filter(s.rfilter,nil,tp)
if chk==0 then return rg:CheckSubGroup(s.fgoal,2,2,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=rg:SelectSubGroup(tp,s.fgoal,false,2,2,tp)
Duel.Release(g,REASON_COST)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
if Duel.IsChainDisablable(0) then
local g = Duel.GetMatchingGroup(Card.IsAbleToGrave, tp, 0, LOCATION_MZONE, nil)
if #g > 1 and Duel.SelectYesNo(1 - tp, aux.Stringid(id, 0)) then
if g:GetCount()>1 then --and Duel.SelectYesNo(1 - tp, aux.Stringid(id, 0)) then
sel=Duel.SelectOption(1-tp,1213,1214)
else
sel=Duel.SelectOption(1-tp,1214)+1
end
if sel==0 then
Duel.Hint(HINT_SELECTMSG, 1 - tp, HINTMSG_TOGRAVE)
local sg = g:Select(1 - tp, 2, 2, nil)
Duel.SendtoGrave(sg, REASON_EFFECT)
......@@ -52,15 +71,13 @@ function s.tgfilter(c)
return c:IsSetCard(0x144e) and c:IsAbleToGrave()
end
function s.tgtg(e, tp, eg, ep, ev, re, r, rp, chk)
if chk == 0 then
return Duel.IsExistingMatchingCard(s.tgfilter, tp, LOCATION_DECK, 0, 2, nil)
end
if chk == 0 then return Duel.IsExistingMatchingCard(s.tgfilter, tp, LOCATION_DECK, 0, 2, nil) end
Duel.SetOperationInfo(0, CATEGORY_TOGRAVE, nil, 2, tp, LOCATION_DECK)
end
function s.tgop(e, tp, eg, ep, ev, re, r, rp)
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOGRAVE)
local g = Duel.SelectMatchingCard(tp, s.tgfilter, tp, LOCATION_DECK, 0, 2, 2, nil)
if #g > 0 then
if g:GetCount()>0 then
Duel.SendtoGrave(g, REASON_EFFECT)
end
end
......@@ -47,7 +47,6 @@ function c47510217.initial_effect(c)
--indes
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e5:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e5:SetRange(LOCATION_EXTRA)
e5:SetTargetRange(LOCATION_MZONE,0)
......@@ -146,7 +145,7 @@ function c47510217.sumop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g1,0,tp,tp,false,false,POS_FACEUP)
end
end
function c47510217.indtg(c)
function c47510217.indtg(e,c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH)
end
function c47510217.indct(e,re,r,rp)
......
......@@ -43,7 +43,7 @@ function c65072000.op(e,tp,eg,ep,ev,re,r,rp)
local tc=g1:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(11,0,aux.Stringid(code,0))
elseif m==1 and b2 then
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_EFFECT+REASON_DISCARD,e:GetHandler())
local g2=Duel.SelectMatchingCard(tp,c65072000.fil2,tp,LOCATION_DECK,0,1,1,nil)
......
......@@ -60,7 +60,7 @@ function c65072001.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -14,7 +14,7 @@ end
function c65072002.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.Hint(21,0,aux.Stringid(65072002,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072002,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......
......@@ -58,7 +58,7 @@ function c65072003.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -60,7 +60,7 @@ function c65072004.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -102,3 +102,4 @@ end
function c65072004.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetOwnerPlayer()
end
......@@ -14,7 +14,7 @@ end
function c65072005.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.Hint(21,0,aux.Stringid(65072005,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072005,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......@@ -83,6 +83,6 @@ function c65072005.tfop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.SelectMatchingCard(tp,c65072005.tffilter,tp,LOCATION_DECK,0,1,1,nil,tp):GetFirst()
if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(tc:GetCode(),0))
Duel.Hint(11,0,aux.Stringid(tc:GetCode(),0))
end
end
......@@ -61,7 +61,7 @@ function c65072006.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -17,7 +17,7 @@ function c65072007.filter(c)
end
function c65072007.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65072007.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(21,0,aux.Stringid(65072007,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072007,0))
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c65072007.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -60,7 +60,7 @@ function c65072008.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -99,3 +99,4 @@ function c65072008.operation(e,tp,eg,ep,ev,re,r,rp)
tc=g:GetNext()
end
end
......@@ -60,7 +60,7 @@ function c65072009.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -93,3 +93,5 @@ function c65072009.sop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
end
......@@ -14,7 +14,7 @@ end
function c65072010.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.Hint(21,0,aux.Stringid(65072010,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072010,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......
......@@ -60,7 +60,7 @@ function c65072011.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(21,0,aux.Stringid(code,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -14,7 +14,7 @@ end
function c65072012.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsCode(65071999) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,65071999) end
Duel.Hint(21,0,aux.Stringid(65072012,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072012,0))
local g=Duel.SelectTarget(tp,Card.IsCode,tp,LOCATION_MZONE,0,1,1,nil,65071999)
end
function c65072012.op(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -20,7 +20,7 @@ end
function c65072013.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsCode(65071999) and chkc:IsControler(tp) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,65071999) end
Duel.Hint(21,0,aux.Stringid(65072013,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072013,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsCode,tp,LOCATION_MZONE,0,1,1,nil,65071999)
end
......@@ -46,3 +46,4 @@ function c65072013.activate(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e5)
end
end
......@@ -19,7 +19,7 @@ function c65072014.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c65072014.desfilter,tp,LOCATION_ONFIELD,0,1,e:GetHandler())
and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(21,0,aux.Stringid(65072014,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072014,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,c65072014.desfilter,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
......@@ -32,7 +32,7 @@ function c65072017.initial_effect(c)
end
function c65072017.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072017,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072017,0))
end
function c65072017.val(e,c)
local tp=e:GetHandlerPlayer()
......@@ -86,7 +86,15 @@ function c65072017.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c65072017.tgopfil(c)
return c:IsReleasableByEffect() and c:IsCode(65071999)
end
function c65072017.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c65072017.tgopfil,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c65072017.tgopfil,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
else
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
\ No newline at end of file
......@@ -32,7 +32,7 @@ function c65072018.initial_effect(c)
end
function c65072018.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072018,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072018,0))
end
function c65072018.discon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler()==e:GetHandler()
......@@ -97,7 +97,15 @@ function c65072018.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c65072018.tgopfil(c)
return c:IsReleasableByEffect() and c:IsCode(65071999)
end
function c65072018.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c65072018.tgopfil,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c65072018.tgopfil,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
else
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
......@@ -20,7 +20,7 @@ end
function c65072019.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) and Duel.IsExistingMatchingCard(c65072019.tgfil,tp,LOCATION_FZONE,0,1,nil) end
Duel.Hint(21,0,aux.Stringid(65072019,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072019,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......
......@@ -17,7 +17,7 @@ end
function c65072020.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) and Duel.IsExistingMatchingCard(c65072020.tgfil,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(21,0,aux.Stringid(65072020,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072020,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......
......@@ -32,7 +32,7 @@ function c65072021.initial_effect(c)
end
function c65072021.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072021,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072021,0))
end
function c65072021.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
......@@ -97,7 +97,16 @@ function c65072021.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c65072021.tgopfil(c)
return c:IsReleasableByEffect() and c:IsCode(65071999)
end
function c65072021.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c65072021.tgopfil,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c65072021.tgopfil,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
else
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
......@@ -31,7 +31,7 @@ function c65072022.initial_effect(c)
end
function c65072022.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072022,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072022,0))
end
function c65072022.discon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() and e:GetHandler():IsRelateToBattle()
......@@ -92,7 +92,15 @@ function c65072022.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c65072022.tgopfil(c)
return c:IsReleasableByEffect() and c:IsCode(65071999)
end
function c65072022.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c65072022.tgopfil,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c65072022.tgopfil,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
else
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
......@@ -20,6 +20,7 @@ function c65072023.thfil(c)
end
function c65072023.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65072023.costfil,tp,LOCATION_GRAVE,0,1,nil) and Duel.IsExistingMatchingCard(c65072016.thfil,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072023,0))
local num1=Duel.GetMatchingGroup(c65072023.costfil,tp,LOCATION_GRAVE,0,nil):GetClassCount(Card.GetCode)
local num2=Duel.GetMatchingGroupCount(c65072023.thfil,tp,LOCATION_DECK,0,nil)
if num1>num2 then num1=num2 end
......@@ -32,7 +33,6 @@ function c65072023.filter(c)
end
function c65072023.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072023,0))
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,e:GetLabel(),tp,LOCATION_DECK)
end
function c65072023.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -20,6 +20,7 @@ function c65072024.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c65072024.filter(chkc) end
if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingTarget(c65072024.filter,tp,LOCATION_REMOVED,0,1,nil) end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072024,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c65072024.filter,tp,LOCATION_REMOVED,0,1,num,nil)
e:SetLabel(g:GetCount())
......
......@@ -32,7 +32,7 @@ function c65072025.initial_effect(c)
end
function c65072025.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072025,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072025,0))
end
function c65072025.val(e,te)
return te:GetOwner()==e:GetHandler()
......@@ -89,7 +89,15 @@ function c65072025.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c65072025.tgopfil(c)
return c:IsReleasableByEffect() and c:IsCode(65071999)
end
function c65072025.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c65072025.tgopfil,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c65072025.tgopfil,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
else
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
......@@ -30,7 +30,8 @@ function c65072026.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=eg:Filter(c65072026.confil,nil)
local gn=g:GetCount()
if chk==0 then return Duel.IsExistingMatchingCard(c65072026.costfil,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingTarget(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,1,nil,e) end
local num=Duel.GetMatchingGroup(c65072026.tgfil,tp,0,LOCATION_ONFIELD,nil)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072026,0))
local num=Duel.GetMatchingGroup(c65072026.tgfil,tp,0,LOCATION_ONFIELD,nil,e)
if gn>num then gn=num end
local tgg=Duel.SelectMatchingCard(tp,c65072026.costfil,tp,LOCATION_DECK,0,1,gn,nil)
Duel.SendtoGrave(tgg,REASON_COST)
......
......@@ -17,6 +17,7 @@ function c65072027.costfil(c)
end
function c65072027.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65072027.costfil,tp,LOCATION_DECK,0,1,nil) and Duel.GetMZoneCount(tp)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072027,0))
local num1=Duel.GetMatchingGroup(c65072027.costfil,tp,LOCATION_DECK,0,nil):GetClassCount(Card.GetCode)
local num2=Duel.GetMZoneCount(tp)
if num1>num2 then num1=num2 end
......@@ -28,7 +29,6 @@ function c65072027.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c65072027.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072027,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......
......@@ -32,7 +32,7 @@ function c65072028.initial_effect(c)
end
function c65072028.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072028,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072028,0))
end
function c65072028.distg(e,c)
local ec=e:GetHandler()
......@@ -91,7 +91,15 @@ function c65072028.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c65072028.tgopfil(c)
return c:IsReleasableByEffect() and c:IsCode(65071999)
end
function c65072028.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c65072028.tgopfil,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c65072028.tgopfil,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
else
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
......@@ -32,7 +32,7 @@ function c65072029.initial_effect(c)
end
function c65072029.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(21,0,aux.Stringid(65072029,0))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072029,0))
end
function c65072029.val(e,te)
return te:GetOwnerPlayer()==e:GetHandlerPlayer() and te:GetOwner()~=e:GetOwner()
......@@ -84,7 +84,16 @@ function c65072029.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c65072029.tgopfil(c)
return c:IsReleasableByEffect() and c:IsCode(65071999)
end
function c65072029.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c65072029.tgopfil,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c65072029.tgopfil,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
else
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
......@@ -21,6 +21,7 @@ function c65072030.thfil(c)
end
function c65072030.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65072030.thfil,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(65072030,0))
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end
function c65072030.operation(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -9,7 +9,9 @@ function cm.initial_effect(c)
e0:SetDescription(aux.Stringid(m,0))
e0:SetCategory(CATEGORY_DESTROY+CATEGORY_SEARCH+CATEGORY_TOHAND)
e0:SetType(EFFECT_TYPE_IGNITION)
e0:SetCountLimit(1,82226025)
e0:SetRange(LOCATION_PZONE)
e0:SetCondition(cm.thcon)
e0:SetTarget(cm.thtg)
e0:SetOperation(cm.thop)
c:RegisterEffect(e0)
......@@ -38,6 +40,9 @@ function cm.initial_effect(c)
e2:SetOperation(cm.thop2)
c:RegisterEffect(e2)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,1,e:GetHandler(),0x129d)
end
function cm.thfilter(c)
return c:IsSetCard(0x129d) and c:IsAbleToHand() and c:IsAttackBelow(1437)
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