Commit 9db5bf7a authored by POLYMER's avatar POLYMER

fix

parent 17357997
......@@ -23,12 +23,11 @@ function s.initial_effect(c)
e2:SetValue(aux.indoval)
c:RegisterEffect(e2)
-- 把这张卡1个超量素材取除,以自己的场上·墓地1只怪兽和对方的场上·墓地1张卡为对象才能发动(这张卡超量召唤的回合,这个效果在对方回合也能发动),那些卡回到手卡
-- 把这张卡1个超量素材取除,以自己的场上·墓地1只念动力族怪兽和对方的场上·墓地1张卡为对象才能发动(这张卡超量召唤的回合,这个效果在对方回合也能发动),那些卡回到手卡
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,0))
e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_HAND)
e3:SetCountLimit(1,id)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetRange(LOCATION_MZONE)
......@@ -54,7 +53,7 @@ function s.valcon(e)
return e:GetHandler():GetOverlayGroup():IsExists(Card.IsType,1,nil,TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK)
end
-- 把这张卡1个超量素材取除,以自己的场上·墓地1只怪兽和对方的场上·墓地1张卡为对象才能发动(这张卡超量召唤的回合,这个效果在对方回合也能发动),那些卡回到手卡
-- 把这张卡1个超量素材取除,以自己的场上·墓地1只念动力族怪兽和对方的场上·墓地1张卡为对象才能发动(这张卡超量召唤的回合,这个效果在对方回合也能发动),那些卡回到手卡
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
......@@ -66,7 +65,7 @@ function s.thcon(e,tp)
end
function s.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsRace(RACE_PSYCHO) and c:IsFaceupEx() and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......@@ -83,7 +82,8 @@ end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()>0 then
tg=tg:Filter(aux.NecroValleyFilter(),nil)
if #tg>0 then
Duel.SendtoHand(tg,nil,REASON_EFFECT)
end
end
--蒸汽朋克阶跃同频
local s,id=GetID()
local s,id,o=GetID()
function s.initial_effect(c)
-- ●自己的场上·墓地·除外状态的怪兽作为融合素材回到卡组,把1只「蒸汽朋克」融合怪兽融合召唤
-- 可以从以下选择1个发动(这个卡名的以下效果1回合各能选择1次)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetCategory(CATEGORY_TODECK|CATEGORY_SPECIAL_SUMMON|CATEGORY_FUSION_SUMMON|CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
-- ●从自己墓地选调整1只和调整以外的怪兽任意数量除外,把持有和除外的怪兽的等级合计相同等级的1只「蒸汽朋克」同调怪兽从额外卡组当作同调召唤作特殊召唤
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCountLimit(1,id+1)
e2:SetTarget(s.starget)
e2:SetOperation(s.sactivate)
c:RegisterEffect(e2)
-- ●自己的手卡·墓地·除外状态的1只「蒸汽朋克」怪兽特殊召唤,那之后,可以只用自己场上的「蒸汽朋克」怪兽为素材进行1只「蒸汽朋克」超量怪兽的超量召唤
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,2))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_ACTIVATE)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER|TIMING_END_PHASE)
e3:SetCountLimit(1,id+2)
e3:SetTarget(s.xtarget)
e3:SetOperation(s.xactivate)
c:RegisterEffect(e3)
end
-- ●自己的场上·墓地·除外状态的怪兽作为融合素材回到卡组,把1只「蒸汽朋克」融合怪兽融合召唤
-- 可以从以下选择1个发动(这个卡名的以下效果1回合各能选择1次)
function s.filter0(c)
return (c:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck()
return (c:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) or c:IsFaceup())
and c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck()
end
function s.filter1(c,e)
return (c:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck() and not c:IsImmuneToEffect(e)
return (c:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) or c:IsFaceup())
and c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck() and not c:IsImmuneToEffect(e)
end
function s.filter2(c,e,tp,m,f,chkf)
......@@ -51,8 +30,41 @@ function s.filter2(c,e,tp,m,f,chkf)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
function s.sfilter1(c,e,tp)
local lv=c:GetLevel()
return c:IsSetCard(0x666b) and c:IsType(TYPE_SYNCHRO)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
and Duel.IsExistingMatchingCard(s.sfilter2,tp,LOCATION_GRAVE,0,1,nil,tp,lv)
end
function s.sfilter2(c,tp,lv)
local rlv=lv-c:GetLevel()
local rg=Duel.GetMatchingGroup(s.sfilter3,tp,LOCATION_GRAVE,0,c)
return rlv>0 and c:IsType(TYPE_TUNER) and c:IsAbleToRemove()
and rg:CheckWithSumEqual(Card.GetLevel,rlv,1,63)
end
function s.sfilter3(c)
return c:GetLevel()>0 and not c:IsType(TYPE_TUNER) and c:IsAbleToRemove()
end
function s.spfilter(c,e,tp)
return c:IsFaceupEx() and c:IsSetCard(0x666b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.mfilter(c)
return c:IsFaceup() and c:IsSetCard(0x666b) and not c:IsType(TYPE_TOKEN)
end
function s.xyzfilter(c,mg)
return c:IsSetCard(0x666b) and c:IsXyzSummonable(mg)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
local b1=(Duel.GetFlagEffect(tp,id)==0 or not e:IsCostChecked()) and
(function()
local chkf=tp
local mg=Duel.GetMatchingGroup(s.filter0,tp,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,0,nil)
local res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,nil,chkf)
......@@ -66,13 +78,46 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
return res
end)()
local b2=(Duel.GetFlagEffect(tp,id+1)==0 or not e:IsCostChecked()) and
aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) and
Duel.IsExistingMatchingCard(s.sfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp)
local b3=(Duel.GetFlagEffect(tp,id+2)==0 or not e:IsCostChecked()) and
Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp)
if chk==0 then return b1 or b2 or b3 end
local op=aux.SelectFromOptions(tp,
{b1,aux.Stringid(id,1),1},
{b2,aux.Stringid(id,2),2},
{b3,aux.Stringid(id,3),3})
e:SetLabel(op)
if op==1 then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
if e:IsCostChecked() then
e:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e:SetProperty(0)
Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1)
end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
elseif op==2 then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED)
if e:IsCostChecked() then
e:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE)
e:SetProperty(0)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE+PHASE_END,0,1)
end
elseif op==3 then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED)
if e:IsCostChecked() then
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
e:SetProperty(0)
Duel.RegisterFlagEffect(tp,id+2,RESET_PHASE+PHASE_END,0,1)
end
end
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local op=e:GetLabel()
if op==1 then
local chkf=tp
local mg=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.filter1),tp,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,0,nil,e)
local sg1=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg,nil,chkf)
......@@ -85,22 +130,20 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local mf=ce:GetValue()
sg2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg3,mf,chkf)
end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
if #sg1>0 or (sg2 and #sg2>0) then
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=sg:Select(tp,1,1,nil)
local tc=tg:GetFirst()
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
if sg1:IsContains(tc) and (not sg2 or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat=Duel.SelectFusionMaterial(tp,tc,mg,nil,chkf)
tc:SetMaterial(mat)
if mat:IsExists(Card.IsFacedown,1,nil) then
local cg=mat:Filter(Card.IsFacedown,nil)
Duel.ConfirmCards(1-tp,cg)
Duel.ConfirmCards(1-tp,mat:Filter(Card.IsFacedown,nil))
end
if mat:Filter(s.cfilter,nil):GetCount()>0 then
local cg=mat:Filter(s.cfilter,nil)
Duel.HintSelection(cg)
Duel.HintSelection(mat:Filter(s.cfilter,nil))
end
Duel.SendtoDeck(mat,nil,SEQ_DECKSHUFFLE,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect()
......@@ -112,49 +155,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
tc:CompleteProcedure()
end
end
function s.cfilter(c)
return c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) or (c:IsLocation(LOCATION_MZONE) and c:IsFaceup())
end
-- ●从自己墓地选调整1只和调整以外的怪兽任意数量除外,把持有和除外的怪兽的等级合计相同等级的1只「蒸汽朋克」同调怪兽从额外卡组当作同调召唤作特殊召唤
function s.sfilter1(c,e,tp)
local lv=c:GetLevel()
return c:IsSetCard(0x666b) and c:IsType(TYPE_SYNCHRO)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
and Duel.IsExistingMatchingCard(s.sfilter2,tp,LOCATION_GRAVE,0,1,nil,tp,lv)
end
function s.sfilter2(c,tp,lv)
local rlv=lv-c:GetLevel()
local rg=Duel.GetMatchingGroup(s.sfilter3,tp,LOCATION_GRAVE,0,c)
return rlv>0 and c:IsType(TYPE_TUNER) and c:IsAbleToRemove()
and rg:CheckWithSumEqual(Card.GetLevel,rlv,1,63)
end
function s.sfilter3(c)
return c:GetLevel()>0 and not c:IsType(TYPE_TUNER) and c:IsAbleToRemove()
end
function s.starget(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL)
and Duel.IsExistingMatchingCard(s.sfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp)
end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function s.sactivate(e,tp,eg,ep,ev,re,r,rp)
elseif op==2 then
if not aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g1=Duel.SelectMatchingCard(tp,s.sfilter1,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
if g1:GetCount()==0 then return end
if #g1==0 then return end
local lv=g1:GetFirst():GetLevel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,s.sfilter2,tp,LOCATION_GRAVE,0,1,1,nil,tp,lv)
if g2:GetCount()==0 then return end
if #g2==0 then return end
local rlv=lv-g2:GetFirst():GetLevel()
local rg=Duel.GetMatchingGroup(s.sfilter3,tp,LOCATION_GRAVE,0,g2:GetFirst())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......@@ -166,37 +175,15 @@ function s.sactivate(e,tp,eg,ep,ev,re,r,rp)
sc:SetMaterial(nil)
Duel.SpecialSummon(sc,SUMMON_TYPE_SYNCHRO,tp,tp,false,false,POS_FACEUP)
sc:CompleteProcedure()
end
-- ●自己的手卡·墓地·除外状态的1只「蒸汽朋克」怪兽特殊召唤,那之后,可以只用自己场上的「蒸汽朋克」怪兽为素材进行1只「蒸汽朋克」超量怪兽的超量召唤
function s.spfilter(c,e,tp)
return c:IsFaceupEx() and c:IsSetCard(0x666b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.xtarget(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED)
end
function s.mfilter(c)
return c:IsFaceup() and c:IsSetCard(0x666b) and not c:IsType(TYPE_TOKEN)
end
function s.xyzfilter(c,mg)
return c:IsSetCard(0x666b) and c:IsXyzSummonable(mg)
end
function s.xactivate(e,tp,eg,ep,ev,re,r,rp)
elseif op==3 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then
if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.AdjustAll()
local mg=Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_MZONE,0,nil)
if Duel.IsExistingMatchingCard(s.xyzfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
and Duel.SelectYesNo(tp,aux.Stringid(id,4)) then
local xyzg=Duel.GetMatchingGroup(s.xyzfilter,tp,LOCATION_EXTRA,0,nil,mg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local xyz=xyzg:Select(tp,1,1,nil):GetFirst()
......@@ -204,4 +191,9 @@ function s.xactivate(e,tp,eg,ep,ev,re,r,rp)
Duel.XyzSummon(tp,xyz,mg,1,6)
end
end
end
end
function s.cfilter(c)
return c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) or (c:IsLocation(LOCATION_MZONE) and c:IsFaceup())
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