Commit 476cd6f4 authored by mercury233's avatar mercury233

fix Auxiliary.AddDrytronSpSummonEffect

parent 3b78f024
--竜輝巧-ルタδ --竜輝巧-ルタδ
function c22420202.initial_effect(c) function c22420202.initial_effect(c)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c22420202.splimit) e1:SetValue(c22420202.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=aux.AddDrytronSpSummonEffect(c,c22420202.extraop) local e2=aux.AddDrytronSpSummonEffect(c,c22420202.extraop)
e2:SetDescription(aux.Stringid(22420202,0)) e2:SetDescription(aux.Stringid(22420202,0))
e2:SetCountLimit(1,22420202) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW)
end e2:SetCountLimit(1,22420202)
function c22420202.splimit(e,se,sp,st) end
return se:GetHandler():IsSetCard(0x154) function c22420202.splimit(e,se,sp,st)
end return se:GetHandler():IsSetCard(0x154)
function c22420202.drfilter(c) end
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER+TYPE_SPELL) and not c:IsPublic() function c22420202.drfilter(c)
end return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER+TYPE_SPELL) and not c:IsPublic()
function c22420202.extraop(e,tp) end
local g=Duel.GetMatchingGroup(c22420202.drfilter,tp,LOCATION_HAND,0,nil) function c22420202.extraop(e,tp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(22420202,1)) then local g=Duel.GetMatchingGroup(c22420202.drfilter,tp,LOCATION_HAND,0,nil)
Duel.BreakEffect() if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(22420202,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
Duel.ConfirmCards(1-tp,sg) local sg=g:Select(tp,1,1,nil)
Duel.ShuffleHand(tp) Duel.ConfirmCards(1-tp,sg)
Duel.Draw(tp,1,REASON_EFFECT) Duel.ShuffleHand(tp)
end Duel.Draw(tp,1,REASON_EFFECT)
end end
end
--竜輝巧-ラスβ --竜輝巧-ラスβ
function c33543890.initial_effect(c) function c33543890.initial_effect(c)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c33543890.splimit) e1:SetValue(c33543890.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=aux.AddDrytronSpSummonEffect(c,c33543890.extraop) local e2=aux.AddDrytronSpSummonEffect(c,c33543890.extraop)
e2:SetDescription(aux.Stringid(33543890,0)) e2:SetDescription(aux.Stringid(33543890,0))
e2:SetCountLimit(1,33543890) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE)
end e2:SetCountLimit(1,33543890)
function c33543890.splimit(e,se,sp,st) end
return se:GetHandler():IsSetCard(0x154) function c33543890.splimit(e,se,sp,st)
end return se:GetHandler():IsSetCard(0x154)
function c33543890.tgfilter(c) end
return c:IsFaceup() and c:IsSetCard(0x154) and c:IsType(TYPE_MONSTER) function c33543890.tgfilter(c)
end return c:IsFaceup() and c:IsSetCard(0x154) and c:IsType(TYPE_MONSTER)
function c33543890.extraop(e,tp) end
local g=Duel.GetMatchingGroup(c33543890.tgfilter,tp,LOCATION_REMOVED,0,nil) function c33543890.extraop(e,tp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(33543890,1)) then local g=Duel.GetMatchingGroup(c33543890.tgfilter,tp,LOCATION_REMOVED,0,nil)
Duel.BreakEffect() if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(33543890,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_RETURN) local sg=g:Select(tp,1,1,nil)
end Duel.SendtoGrave(sg,REASON_EFFECT+REASON_RETURN)
end end
end
--竜輝巧-エルγ --竜輝巧-エルγ
function c60037599.initial_effect(c) function c60037599.initial_effect(c)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c60037599.splimit) e1:SetValue(c60037599.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=aux.AddDrytronSpSummonEffect(c,c60037599.extraop) local e2=aux.AddDrytronSpSummonEffect(c,c60037599.extraop)
e2:SetDescription(aux.Stringid(60037599,0)) e2:SetDescription(aux.Stringid(60037599,0))
e2:SetCountLimit(1,60037599) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON)
end e2:SetCountLimit(1,60037599)
function c60037599.splimit(e,se,sp,st) end
return se:GetHandler():IsSetCard(0x154) function c60037599.splimit(e,se,sp,st)
end return se:GetHandler():IsSetCard(0x154)
function c60037599.rbfilter(c,e,tp) end
return c:IsSetCard(0x154) and c:IsAttack(2000) and not c:IsCode(60037599) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) function c60037599.rbfilter(c,e,tp)
end return c:IsSetCard(0x154) and c:IsAttack(2000) and not c:IsCode(60037599) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
function c60037599.extraop(e,tp) end
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c60037599.rbfilter),tp,LOCATION_GRAVE,0,nil,e,tp) function c60037599.extraop(e,tp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(60037599,1)) then local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c60037599.rbfilter),tp,LOCATION_GRAVE,0,nil,e,tp)
Duel.BreakEffect() if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(60037599,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) local sg=g:Select(tp,1,1,nil)
end Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end end
end
--竜輝巧-アルζ --竜輝巧-アルζ
function c96026108.initial_effect(c) function c96026108.initial_effect(c)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c96026108.splimit) e1:SetValue(c96026108.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=aux.AddDrytronSpSummonEffect(c,c96026108.extraop) local e2=aux.AddDrytronSpSummonEffect(c,c96026108.extraop)
e2:SetDescription(aux.Stringid(96026108,0)) e2:SetDescription(aux.Stringid(96026108,0))
e2:SetCountLimit(1,96026108) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH)
end e2:SetCountLimit(1,96026108)
function c96026108.splimit(e,se,sp,st) end
return se:GetHandler():IsSetCard(0x154) function c96026108.splimit(e,se,sp,st)
end return se:GetHandler():IsSetCard(0x154)
function c96026108.thfilter(c) end
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() function c96026108.thfilter(c)
end return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
function c96026108.extraop(e,tp) end
local g=Duel.GetMatchingGroup(c96026108.thfilter,tp,LOCATION_DECK,0,nil) function c96026108.extraop(e,tp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(96026108,1)) then local g=Duel.GetMatchingGroup(c96026108.thfilter,tp,LOCATION_DECK,0,nil)
Duel.BreakEffect() if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(96026108,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SendtoHand(sg,nil,REASON_EFFECT) local sg=g:Select(tp,1,1,nil)
Duel.ConfirmCards(1-tp,sg) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,sg)
end end
end
--竜輝巧-バンα --竜輝巧-バンα
function c97148796.initial_effect(c) function c97148796.initial_effect(c)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c97148796.splimit) e1:SetValue(c97148796.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=aux.AddDrytronSpSummonEffect(c,c97148796.extraop) local e2=aux.AddDrytronSpSummonEffect(c,c97148796.extraop)
e2:SetDescription(aux.Stringid(97148796,0)) e2:SetDescription(aux.Stringid(97148796,0))
e2:SetCountLimit(1,97148796) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH)
end e2:SetCountLimit(1,97148796)
function c97148796.splimit(e,se,sp,st) end
return se:GetHandler():IsSetCard(0x154) function c97148796.splimit(e,se,sp,st)
end return se:GetHandler():IsSetCard(0x154)
function c97148796.thfilter(c) end
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() function c97148796.thfilter(c)
end return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
function c97148796.extraop(e,tp) end
local g=Duel.GetMatchingGroup(c97148796.thfilter,tp,LOCATION_DECK,0,nil) function c97148796.extraop(e,tp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(97148796,1)) then local g=Duel.GetMatchingGroup(c97148796.thfilter,tp,LOCATION_DECK,0,nil)
Duel.BreakEffect() if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(97148796,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SendtoHand(sg,nil,REASON_EFFECT) local sg=g:Select(tp,1,1,nil)
Duel.ConfirmCards(1-tp,sg) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,sg)
end end
end
...@@ -2444,7 +2444,6 @@ end ...@@ -2444,7 +2444,6 @@ end
--Drytron common summon effect --Drytron common summon effect
function Auxiliary.AddDrytronSpSummonEffect(c,func) function Auxiliary.AddDrytronSpSummonEffect(c,func)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetCost(Auxiliary.DrytronSpSummonCost) e1:SetCost(Auxiliary.DrytronSpSummonCost)
......
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