Commit 3ef4103b authored by Tachibana's avatar Tachibana

1145141919810

parent 189dda94
Pipeline #15184 passed with stages
in 28 minutes and 9 seconds
......@@ -58,9 +58,9 @@ function c12852005.descon(e,tp,eg,ep,ev,re,r,rp)
end
function c12852005.destg(e,tp,eg,ep,ev,re,r,rp,chk)
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)
if chk==0 then return e:GetHandler():GetFlagEffect(12852005)==0 and og:GetCount()~=0 end
e:GetHandler():RegisterFlagEffect(12852005,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
og:KeepAlive()
e:SetLabelObject(og)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
......@@ -76,25 +76,27 @@ end
function c12852005.eqlimit(e,c)
return c:IsSetCard(0xa75)
end
function c12852005.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xa75) and c:IsControler(tp) and (c:IsCanBeSpecialSummoned(e,0,tp,false,false) or c:IsLocation(LOCATION_MZONE))
function c12852005.filter(c,e,tp,zone)
return c:IsFaceup() and c:IsSetCard(0xa75) and c:IsControler(tp) and (c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) or c:IsLocation(LOCATION_MZONE))
end
function c12852005.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local zone=1<<(e:GetHandler():GetSequence())
if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and c12852005.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c12852005.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c12852005.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,e,tp,zone) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,c12852005.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectTarget(tp,c12852005.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,e,tp,zone)
if g:GetFirst():IsLocation(LOCATION_GRAVE) then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c12852005.operation(e,tp,eg,ep,ev,re,r,rp)
local zone=1<<(e:GetHandler():GetSequence())
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
if tc:IsLocation(LOCATION_GRAVE) and tc:IsRelateToEffect(e) and aux.NecroValleyFilter()(tc) then
Duel.SpecialSummon(tc,SUMMON_VALUE_MONSTER_REBORN,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummon(tc,SUMMON_VALUE_MONSTER_REBORN,tp,tp,false,false,POS_FACEUP,zone)
end
Duel.Equip(tp,c,tc)
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