Commit 11c9e8f4 authored by Tachibana's avatar Tachibana

sign out

parent 59a0a6b1
Pipeline #2960 passed with stages
in 24 minutes and 30 seconds
......@@ -31,13 +31,14 @@ function cm.xyzfilter0(g,e,tp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_RANK)
e1:SetValue(10)
e1:SetReset(RESET_CHAIN+RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CHANGE_RANK)
e2:SetValue(10)
e2:SetReset(RESET_CHAIN+RESET_EVENT+RESETS_STANDARD)
mc:RegisterEffect(e2,true)
if not c:IsCanBeSpecialSummoned(e,0,tp,false,false) and mc:IsCanBeSpecialSummoned(e,0,tp,false,false) then return false end
local res=Duel.IsExistingMatchingCard(Card.IsXyzSummonable,tp,LOCATION_EXTRA,0,1,nil,Group.FromCards(c,mc),2,2)
local res1=Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,mc,c:GetOriginalRank()+mc:GetOriginalRank())
e1:Reset()
......@@ -48,15 +49,15 @@ function cm.filter2(c,e,tp,mc,sc,rk)
return c:IsRank(rk) and mc:IsCanBeXyzMaterial(c) and sc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end
function cm.filter(c,e)
return c:IsType(TYPE_XYZ) and c:IsCanBeEffectTarget(e)
function cm.filter(c,e,tp)
return c:IsType(TYPE_XYZ) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.spfilter3(c,e,tp)
return c:IsRelateToEffect(e)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE)
local mg=Duel.GetMatchingGroup(cm.filter1,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,e)
local mg=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,e,tp)
if chkc then return false end
if chk==0 then return ct>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and mg:CheckSubGroup(cm.xyzfilter0,2,2,e,tp) end
......@@ -72,16 +73,16 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()<2 then return end
local tc1=g:GetFirst()
local tc2=g:GetNext()
Duel.SpecialSummonStep(tc1,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonStep(tc2,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_RANK)
e1:SetValue(10)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD)
tc1:RegisterEffect(e1,true)
local e2=e1:Clone()
tc2:RegisterEffect(e2,true)
Duel.SpecialSummonStep(tc1,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonStep(tc2,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonComplete()
Duel.BreakEffect()
local sg=Group.FromCards(tc1,tc2)
......@@ -119,7 +120,7 @@ function cm.thfilter(c)
return c:IsSetCard(0x95) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -35,8 +35,6 @@ function c33400103.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.RemoveCounter(tp,1,0,0x34f,sc1,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c33400103.filter,tp,LOCATION_MZONE,LOCATION_MZONE,sc1,sc1,nil)
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE+CATEGORY_LVCHANGE,g,g:GetCount(),0,0)
local v=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
end
function c33400103.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
......
......@@ -61,11 +61,11 @@ end
function cm.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND,LOCATION_ONFIELD,LOCATION_GRAVE,0,nil)
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
return g:CheckSubGroup(cm.fselect,9,9,tp,c)
end
function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND,LOCATION_ONFIELD,LOCATION_GRAVE,0,nil)
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local mg=g:SelectSubGroup(tp,cm.fselect,false,9,9,tp,c)
local sg=Group.CreateGroup()
......
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