Commit 3c8a8dcd authored by Tachibana's avatar Tachibana

1145141919810

parent 39989f2b
Pipeline #15179 passed with stages
in 32 minutes and 12 seconds
No preview for this file type
expansions/pics/12852003.jpg

145 KB | W: | H:

expansions/pics/12852003.jpg

144 KB | W: | H:

expansions/pics/12852003.jpg
expansions/pics/12852003.jpg
expansions/pics/12852003.jpg
expansions/pics/12852003.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12852004.jpg

121 KB | W: | H:

expansions/pics/12852004.jpg

119 KB | W: | H:

expansions/pics/12852004.jpg
expansions/pics/12852004.jpg
expansions/pics/12852004.jpg
expansions/pics/12852004.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12852007.jpg

129 KB | W: | H:

expansions/pics/12852007.jpg

123 KB | W: | H:

expansions/pics/12852007.jpg
expansions/pics/12852007.jpg
expansions/pics/12852007.jpg
expansions/pics/12852007.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -65,15 +65,19 @@ function c12852003.descon(e,tp,eg,ep,ev,re,r,rp)
return col and eg:IsExists(c12852003.desfilter,1,e:GetHandler(),col,tp,e)
end
function c12852003.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local col=aux.GetColumn(e:GetHandler())
if chk==0 then return e:GetHandler():GetFlagEffect(12852003)==0 end
e:GetHandler():RegisterFlagEffect(12852003,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local og=eg:Filter(c12852003.desfilter,nil,col,tp,e)
og:KeepAlive()
e:SetLabelObject(og)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c12852003.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local col=aux.GetColumn(e:GetHandler())
local tc=eg:Filter(c12852003.desfilter,nil,col,tp,e):GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
local tc=e:GetLabelObject():GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
end
......
......@@ -27,8 +27,8 @@ function c12852004.initial_effect(c)
e2:SetCode(EVENT_MOVE)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c12852004.descon)
e2:SetTarget(c12852004.destg)
e2:SetOperation(c12852004.desop)
e2:SetTarget(c12852004.destg1)
e2:SetOperation(c12852004.desop1)
c:RegisterEffect(e2)
--Equip limit
local e3=Effect.CreateEffect(c)
......@@ -80,7 +80,7 @@ function c12852004.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c12852004.chfilter(c)
return c:IsFaceup() and c:IsCode(12852002)
return c:IsFaceup() and c:IsCode(12852001)
end
function c12852004.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c12852004.chfilter,tp,LOCATION_MZONE,0,1,nil)
......@@ -109,16 +109,20 @@ function c12852004.descon(e,tp,eg,ep,ev,re,r,rp)
local col=aux.GetColumn(e:GetHandler())
return col and eg:IsExists(c12852004.desfilter,1,e:GetHandler(),col,tp,e)
end
function c12852004.destg(e,tp,eg,ep,ev,re,r,rp,chk)
function c12852004.destg1(e,tp,eg,ep,ev,re,r,rp,chk)
local col=aux.GetColumn(e:GetHandler())
if chk==0 then return e:GetHandler():GetFlagEffect(12852004)==0 end
e:GetHandler():RegisterFlagEffect(12852004,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local og=eg:Filter(c12852004.desfilter,nil,col,tp,e)
og:KeepAlive()
e:SetLabelObject(og)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c12852004.desop(e,tp,eg,ep,ev,re,r,rp)
function c12852004.desop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local col=aux.GetColumn(e:GetHandler())
local tc=eg:Filter(c12852004.desfilter,nil,col,tp,e):GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
local tc=e:GetLabelObject():GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
end
......
......@@ -57,15 +57,19 @@ function c12852005.descon(e,tp,eg,ep,ev,re,r,rp)
return col and eg:IsExists(c12852005.desfilter,1,e:GetHandler(),col,tp,e)
end
function c12852005.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(12852003)==0 end
e:GetHandler():RegisterFlagEffect(12852003,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local col=aux.GetColumn(e:GetHandler())
if chk==0 then return e:GetHandler():GetFlagEffect(12852005)==0 end
e:GetHandler():RegisterFlagEffect(12852005,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local og=eg:Filter(c12852005.desfilter,nil,col,tp,e)
og:KeepAlive()
e:SetLabelObject(og)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c12852005.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local col=aux.GetColumn(e:GetHandler())
local tc=eg:Filter(c12852005.desfilter,nil,col,tp,e):GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
local tc=e:GetLabelObject():GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
end
......
......@@ -65,15 +65,19 @@ function c12852006.descon(e,tp,eg,ep,ev,re,r,rp)
return col and eg:IsExists(c12852006.desfilter,1,e:GetHandler(),col,tp,e)
end
function c12852006.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(12852003)==0 end
e:GetHandler():RegisterFlagEffect(12852003,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local col=aux.GetColumn(e:GetHandler())
if chk==0 then return e:GetHandler():GetFlagEffect(12852006)==0 end
e:GetHandler():RegisterFlagEffect(12852006,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local og=eg:Filter(c12852006.desfilter,nil,col,tp,e)
og:KeepAlive()
e:SetLabelObject(og)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c12852006.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local col=aux.GetColumn(e:GetHandler())
local tc=eg:Filter(c12852006.desfilter,nil,col,tp,e):GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
local tc=e:GetLabelObject():GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
end
......
......@@ -21,6 +21,7 @@ function c12852007.initial_effect(c)
e2:SetDescription(aux.Stringid(12852007,2))
e2:SetCategory(CATEGORY_EQUIP)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_MOVE)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c12852007.descon)
......@@ -47,23 +48,27 @@ end
function c12852007.eftg(e,c)
return c:IsType(TYPE_MONSTER) and c:GetEquipGroup():IsContains(e:GetHandler())
end
function c12852007.desfilter(c,col,tp,e)
function c12852007.desfilter2(c,col,tp,e)
return col==aux.GetColumn(c) and c:IsControler(tp) and c:IsSetCard(0xa75) and not c:GetEquipGroup():IsContains(e:GetHandler())
end
function c12852007.descon(e,tp,eg,ep,ev,re,r,rp)
local col=aux.GetColumn(e:GetHandler())
return col and eg:IsExists(c12852007.desfilter,1,e:GetHandler(),col,tp,e)
return col and eg:IsExists(c12852007.desfilter2,1,e:GetHandler(),col,tp,e)
end
function c12852007.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(12852003)==0 end
e:GetHandler():RegisterFlagEffect(12852003,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local col=aux.GetColumn(e:GetHandler())
if chk==0 then return e:GetHandler():GetFlagEffect(12852007)==0 end
e:GetHandler():RegisterFlagEffect(12852007,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
local og=eg:Filter(c12852007.desfilter2,nil,col,tp,e)
og:KeepAlive()
e:SetLabelObject(og)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c12852007.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local col=aux.GetColumn(e:GetHandler())
local tc=eg:Filter(c12852007.desfilter,nil,col,tp,e):GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
local tc=e:GetLabelObject():GetFirst()
if c:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
end
......@@ -71,48 +76,47 @@ function c12852007.eqlimit(e,c)
return c:IsSetCard(0xa75)
end
function c12852007.filter(c,tp,e)
return (c:IsFaceup() and c:IsSetCard(0xa75) and c:IsControler(tp)) or (c:IsFaceup() and not c:IsImmuneToEffect(e) and c:IsControler(1-tp))
return (c:IsFaceup() and c:IsSetCard(0xa75) and c:IsControler(tp))
end
function c12852007.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c12852007.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c12852007.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp,e) end
if chk==0 then return Duel.IsExistingTarget(c12852007.filter,tp,LOCATION_MZONE,0,1,nil,tp,e) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,c12852007.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,e)
Duel.SelectTarget(tp,c12852007.filter,tp,LOCATION_MZONE,0,1,1,nil,tp,e)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c12852007.desfilter(c,col,tp,e)
return col==aux.GetColumn(c) and c:IsControler(1-tp)
end
function c12852007.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
local seq=tc:GetSequence()
local seq=c:GetSequence()
local col=aux.GetColumn(e:GetHandler())
if tc:IsControler(tp) then
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
else
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:GetColumnGroup():IsContains(c) and Duel.CheckLocation(tp,LOCATION_MZONE,seq) then
Debug.Message(seq)
if Duel.Equip(tp,c,tc)~=0 and Duel.IsExistingMatchingCard(c12852007.desfilter,tp,0,LOCATION_MZONE,1,nil,col,tp,e) and Duel.SelectYesNo(tp,aux.Stringid(12852007,0)) then
local cc=Duel.SelectMatchingCard(tp,c12852007.desfilter,tp,0,LOCATION_MZONE,1,1,nil,col,tp,e):GetFirst()
--add setcode
local e11=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_SINGLE)
e11:SetCode(EFFECT_ADD_SETCODE)
e11:SetValue(0xa75)
e11:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e11)
e11:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
cc:RegisterEffect(e11)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
cc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(RESET_TURN_SET)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.Equip(tp,c,tc)
Duel.GetControl(tc,tp,0,0,2^seq)
else
return
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
cc:RegisterEffect(e2)
Duel.GetControl(cc,tp,PHASE_END,1,2^seq)
end
end
end
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