Commit eb6bc943 authored by Tachibana's avatar Tachibana

得得得得得

parent c6c761f5
Pipeline #12268 passed with stages
in 40 minutes and 12 seconds
...@@ -14,7 +14,7 @@ function c33200057.initial_effect(c) ...@@ -14,7 +14,7 @@ function c33200057.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE) e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c33200057.tgcon) e1:SetCondition(c33200057.tgcon)
e1:SetTarget(c33200057.tgtg) e1:SetTarget(c33200057.tgtg)
......
...@@ -23,7 +23,9 @@ function cm.initial_effect(c) ...@@ -23,7 +23,9 @@ function cm.initial_effect(c)
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler() local tc=re:GetHandler()
Sre_setbackt[1]=tc if tc then
Sre_setbackt[1]=tc
end
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local res=false local res=false
...@@ -31,12 +33,13 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,12 +33,13 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
res=Sre_setbackt[1] res=Sre_setbackt[1]
end end
if chk==0 then return res and res:IsControler(1-tp) and res:IsLocation(LOCATION_ONFIELD) end if chk==0 then return res and res:IsControler(1-tp) and res:IsLocation(LOCATION_ONFIELD) end
res:CreateEffectRelation(e) Duel.SetTargetCard(res)
Duel.HintSelection(Group.FromCards(res))
Duel.SetOperationInfo(0,CATEGORY_CONTROL,e:GetLabelObject(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,e:GetLabelObject(),1,0,0)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Sre_setbackt[1] local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
if tc:IsLocation(LOCATION_MZONE) then if tc:IsLocation(LOCATION_MZONE) then
Duel.GetControl(tc,tp) Duel.GetControl(tc,tp)
...@@ -63,5 +66,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,5 +66,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(c,POS_FACEDOWN) Duel.ChangePosition(c,POS_FACEDOWN)
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end end
local res=Sre_setbackt[1]
res:ReleaseEffectRelation(e) res:ReleaseEffectRelation(e)
end end
\ No newline at end of file
...@@ -7,7 +7,7 @@ function cm.initial_effect(c) ...@@ -7,7 +7,7 @@ function cm.initial_effect(c)
rscf.SetSummonCondition(c,false,cm.sumval) rscf.SetSummonCondition(c,false,cm.sumval)
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x960),2,true) aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x960),2,true)
--local e1=rsef.STO(c,EVENT_SPSUMMON_SUCCESS,{m,0},nil,"th","tg",nil,nil,rstg.target(cm.thfilter,"th",LOCATION_GRAVE),cm.thop) --local e1=rsef.STO(c,EVENT_SPSUMMON_SUCCESS,{m,0},nil,"th","tg",nil,nil,rstg.target(cm.thfilter,"th",LOCATION_GRAVE),cm.thop)
local e1=rsef.STO(c,EVENT_SPSUMMON_SUCCESS,{m,0},nil,"th","tg",nil,nil,rstg.target(cm.setfilter,nil,LOCATION_GRAVE),cm.setop) local e1=rsef.STO(c,EVENT_SPSUMMON_SUCCESS,{m,0},nil,"th",EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY,nil,nil,rstg.target(cm.setfilter,nil,LOCATION_GRAVE),cm.setop)
local e2=rsef.QO(c,nil,{m,1},nil,nil,nil,LOCATION_MZONE,nil,rscost.cost(Card.IsReleasable,"res"),nil,cm.imop) local e2=rsef.QO(c,nil,{m,1},nil,nil,nil,LOCATION_MZONE,nil,rscost.cost(Card.IsReleasable,"res"),nil,cm.imop)
local e3=rscf.SetSpecialSummonProduce(c,LOCATION_EXTRA,cm.spcon,cm.spop) local e3=rscf.SetSpecialSummonProduce(c,LOCATION_EXTRA,cm.spcon,cm.spop)
end end
......
...@@ -15,7 +15,6 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -15,7 +15,6 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
if e:GetHandler():IsStatus(STATUS_ACT_FROM_HAND) and Duel.GetTurnPlayer()~=tp then if e:GetHandler():IsStatus(STATUS_ACT_FROM_HAND) and Duel.GetTurnPlayer()~=tp then
Duel.RegisterFlagEffect(tp,88946420,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,88946420,RESET_PHASE+PHASE_END,0,1)
Debug.Message(Duel.GetFlagEffect(e:GetHandlerPlayer(),88946420))
end end
end end
function cm.handcon(e) function cm.handcon(e)
...@@ -36,7 +35,20 @@ end ...@@ -36,7 +35,20 @@ end
function cm.disop(e,tp) function cm.disop(e,tp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=rscf.GetTargetCard(aux.disfilter1) local tc=rscf.GetTargetCard(aux.disfilter1)
local e1=rsef.FV_LIMIT_PLAYER({c,tp},"sum,sp",nil,cm.spval,{1,0},nil,{rsreset.pend,2}) local el1=Effect.CreateEffect(c)
el1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
el1:SetType(EFFECT_TYPE_FIELD)
el1:SetCode(EFFECT_CANNOT_SUMMON)
el1:SetTarget(cm.sumlimit)
el1:SetTargetRange(1,0)
el1:SetReset(RESET_PHASE+PHASE_END,2)
c:RegisterEffect(el1,tp)
local el2=el1:Clone()
el2:SetCode(EFFECT_CANNOT_MSET)
c:RegisterEffect(el2)
local el3=el1:Clone()
el3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(el3)
if not tc then return end if not tc then return end
Duel.NegateRelatedChain(tc,RESET_TURN_SET) Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1,e2=rsef.SV_LIMIT({c,tc},"dis,dise",nil,nil,rsreset.est_pend) local e1,e2=rsef.SV_LIMIT({c,tc},"dis,dise",nil,nil,rsreset.est_pend)
...@@ -48,6 +60,6 @@ function cm.disop(e,tp) ...@@ -48,6 +60,6 @@ function cm.disop(e,tp)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
rssf.SpecialSummon(sg) rssf.SpecialSummon(sg)
end end
function cm.spval(e,c) function cm.sumlimit(e,c)
return not c:IsSetCard(0x960) return not c:IsSetCard(0x960)
end end
\ No newline at end of file
...@@ -32,7 +32,20 @@ end ...@@ -32,7 +32,20 @@ end
function cm.desop(e,tp) function cm.desop(e,tp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=rscf.GetTargetCard() local tc=rscf.GetTargetCard()
local e1=rsef.FV_LIMIT_PLAYER({c,tp},"sum,sp",nil,cm.spval,{1,0},nil,{rsreset.pend,2}) local el1=Effect.CreateEffect(c)
el1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
el1:SetType(EFFECT_TYPE_FIELD)
el1:SetCode(EFFECT_CANNOT_SUMMON)
el1:SetTarget(cm.spval)
el1:SetTargetRange(1,0)
el1:SetReset(RESET_PHASE+PHASE_END,2)
c:RegisterEffect(el1,tp)
local el2=el1:Clone()
el2:SetCode(EFFECT_CANNOT_MSET)
c:RegisterEffect(el2)
local el3=el1:Clone()
el3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(el3)
if not tc or Duel.Destroy(tc,REASON_EFFECT)<=0 then return end if not tc or Duel.Destroy(tc,REASON_EFFECT)<=0 then return end
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_EXTRA+LOCATION_GRAVE,0,nil,e,tp) local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_EXTRA+LOCATION_GRAVE,0,nil,e,tp)
if #g<=0 or not Duel.SelectYesNo(tp,aux.Stringid(m,0)) then return end if #g<=0 or not Duel.SelectYesNo(tp,aux.Stringid(m,0)) then return 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