Commit 1220326e authored by wind2009's avatar wind2009

Fix

parent aecc8e18
Pipeline #42613 canceled with stages
in 15 seconds
No preview for this file type
......@@ -19,6 +19,7 @@
101304018
101304019
101304020
101304021
101304022
101304023
101304024
......@@ -38,6 +39,8 @@
101304038
101304039
101304040
101304041
101304042
101304043
101304044
101304045
......
......@@ -32,6 +32,7 @@ function s.initial_effect(c)
e3:SetTarget(s.eftg)
e3:SetOperation(s.efop)
c:RegisterEffect(e3)
s.killer_tune_be_material_effect=e3
end
function s.tfilter(e,c)
return c:IsSynchroType(TYPE_TUNER)
......@@ -55,7 +56,7 @@ function s.sumfilter(c)
return c:IsType(TYPE_TUNER) and c:IsSummonable(true,nil)
end
function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.sumfilter,tp,LOCATION_HAND,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(s.sumfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0)
end
function s.sumop(e,tp,eg,ep,ev,re,r,rp)
......@@ -83,7 +84,7 @@ function s.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
if op==1 then
e:SetCategory(CATEGORY_TODECK)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,1-tp,LOCATION_GRAVE)
else
elseif op==2 then
e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
end
end
......@@ -91,11 +92,12 @@ function s.efop(e,tp,eg,ep,ev,re,r,rp)
local op=e:GetLabel()
if op==1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,1,1,nil)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToDeck),tp,0,LOCATION_GRAVE,1,1,nil)
if #g>0 then
Duel.HintSelection(g)
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
end
else
elseif op==2 then
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if #g>0 then
Duel.ConfirmCards(tp,g)
......
--キラーチューン・クラックル
local s,id,o=GetID()
function s.initial_effect(c)
aux.AddMaterialCodeList(c,101304021)
aux.AddMaterialCodeList(c,43904702)
--synchro summon
aux.AddSynchroMixProcedure(c,aux.FilterBoolFunction(Card.IsCode,101304021),nil,nil,aux.Tuner(nil),1,99)
aux.AddSynchroMixProcedure(c,aux.FilterBoolFunction(Card.IsCode,43904702),nil,nil,aux.Tuner(nil),1,99)
c:EnableReviveLimit()
--Effect 1
--remove extra
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_ATKCHANGE)
......@@ -16,7 +16,7 @@ function s.initial_effect(c)
e1:SetTarget(s.atktg)
e1:SetOperation(s.atkop)
c:RegisterEffect(e1)
--Effect 2
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE)
......@@ -37,18 +37,18 @@ function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil)
local g=Duel.GetFieldGroup(tp,0,LOCATION_EXTRA)
if #g>0 then
Duel.ConfirmCards(tp,Duel.GetFieldGroup(tp,0,LOCATION_EXTRA))
Duel.ConfirmCards(tp,g,true)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=g:Select(tp,1,1,nil)
local sg=g:FilterSelect(tp,Card.IsAbleToRemove,1,1,nil)
local tc=sg:GetFirst()
if tc and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT+REASON_TEMPORARY)~=0 then
local fid=c:GetFieldID()
local og=Duel.GetOperatedGroup()
local oc=og:GetFirst()
if oc then
oc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
oc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,fid,aux.Stringid(id,4))
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
......@@ -91,19 +91,19 @@ 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:IsRelateToChain() and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil)
if c:IsRelateToChain() and aux.NecroValleyFilter()(c) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_EXTRA,nil)
if #g>=2 and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.BreakEffect()
Duel.ConfirmCards(tp,Duel.GetFieldGroup(tp,0,LOCATION_EXTRA))
Duel.ConfirmCards(tp,Duel.GetFieldGroup(tp,0,LOCATION_EXTRA),true)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=g:Select(tp,2,2,nil)
if #sg>0 then
local sg=g:FilterSelect(tp,Card.IsAbleToRemove,2,2,nil)
if #sg==2 then
local fid=c:GetFieldID()
if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT+REASON_TEMPORARY)~=0 then
local og=Duel.GetOperatedGroup()
for oc in aux.Next(og) do
oc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
oc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,fid,aux.Stringid(id,4))
end
og:KeepAlive()
local e1=Effect.CreateEffect(c)
......@@ -128,4 +128,4 @@ function s.retop2(e,tp,eg,ep,ev,re,r,rp)
local fid=e:GetLabel()
local tg=e:GetLabelObject():Filter(s.retfilter,nil,fid)
Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
\ No newline at end of file
end
--10星
--キラーチューンB2B
local s,id,o=GetID()
function s.initial_effect(c)
--Synchro Summon
......@@ -41,8 +41,9 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and re:IsActiveType(TYPE_MONSTER)
end
function s.filter(c,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsType(TYPE_TUNER) and not c:IsLevel(10) and c:IsFaceupEx()
and (c:IsAbleToHand() or c:IsCanBeSpecialSummoned(e,0,tp,false,false))
and (c:IsAbleToHand() or ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end
......@@ -64,12 +65,13 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if op==1 then
res=Duel.SendtoHand(tc,nil,REASON_EFFECT)>0
Duel.ConfirmCards(1-tp,tc)
else
elseif op==2 then
res=Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0
end
if res then
local g=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),nil)
......
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