Commit 1a2e492e authored by VanillaSalt's avatar VanillaSalt

fix

parent df33ef84
...@@ -95,7 +95,7 @@ function c21140872.ngcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,7 +95,7 @@ function c21140872.ngcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(c21140872.ngcfilter,1,nil,tp) and Duel.IsChainNegatable(ev) return g and g:IsExists(c21140872.ngcfilter,1,nil,tp) and Duel.IsChainNegatable(ev)
end end
function c21140872.ngfilter(c,e,tp) function c21140872.ngfilter(c)
return c:IsType(TYPE_EQUIP) and c:IsAbleToGraveAsCost() return c:IsType(TYPE_EQUIP) and c:IsAbleToGraveAsCost()
end end
function c21140872.ngcost(e,tp,eg,ep,ev,re,r,rp,chk) function c21140872.ngcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -18,7 +18,7 @@ function c43017476.initial_effect(c) ...@@ -18,7 +18,7 @@ function c43017476.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,43017476+100) e2:SetCountLimit(1,43017477)
e2:SetTarget(c43017476.sptg) e2:SetTarget(c43017476.sptg)
e2:SetOperation(c43017476.spop) e2:SetOperation(c43017476.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -34,11 +34,11 @@ end ...@@ -34,11 +34,11 @@ end
function c43017476.filter(c) function c43017476.filter(c)
return c:IsSetCard(0x100) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x100) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
function c43017476.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43017476.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c43017476.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c43017476.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c43017476.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c43017476.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c43017476.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c43017476.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
...@@ -50,7 +50,7 @@ function c43017476.spfilter(c,e,tp) ...@@ -50,7 +50,7 @@ function c43017476.spfilter(c,e,tp)
return c:IsCode(22587018,58071123,43017476) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(22587018,58071123,43017476) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c43017476.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43017476.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c43017476.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c43017476.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c43017476.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c43017476.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
...@@ -24,7 +24,7 @@ function c44139064.initial_effect(c) ...@@ -24,7 +24,7 @@ function c44139064.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_FZONE) e3:SetRange(LOCATION_FZONE)
e3:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e3:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e3:SetCountLimit(1,44139064+100) e3:SetCountLimit(1,44139065)
e3:SetCondition(c44139064.atkcon) e3:SetCondition(c44139064.atkcon)
e3:SetCost(c44139064.atkcost) e3:SetCost(c44139064.atkcost)
e3:SetOperation(c44139064.atkop) e3:SetOperation(c44139064.atkop)
......
...@@ -24,7 +24,6 @@ function c44352516.initial_effect(c) ...@@ -24,7 +24,6 @@ function c44352516.initial_effect(c)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SUMMON) e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SUMMON)
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET) e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_FZONE) e4:SetRange(LOCATION_FZONE)
e4:SetCountLimit(1,44352516) e4:SetCountLimit(1,44352516)
e4:SetTarget(c44352516.target) e4:SetTarget(c44352516.target)
......
...@@ -18,7 +18,7 @@ function c45078193.initial_effect(c) ...@@ -18,7 +18,7 @@ function c45078193.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,45078193+100) e2:SetCountLimit(1,45078194)
e2:SetCondition(c45078193.gycon) e2:SetCondition(c45078193.gycon)
e2:SetTarget(c45078193.gytg) e2:SetTarget(c45078193.gytg)
e2:SetOperation(c45078193.gyop) e2:SetOperation(c45078193.gyop)
...@@ -43,11 +43,12 @@ end ...@@ -43,11 +43,12 @@ end
function c45078193.filter(c) function c45078193.filter(c)
return c:IsSetCard(0x4093) and c:IsRace(RACE_MACHINE) and c:IsAbleToHand() return c:IsSetCard(0x4093) and c:IsRace(RACE_MACHINE) and c:IsAbleToHand()
end end
function c45078193.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45078193.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c45078193.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c45078193.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c45078193.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c45078193.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=Duel.SelectMatchingCard(tp,c45078193.filter,tp,LOCATION_DECK,0,1,1,nil) local tg=Duel.SelectMatchingCard(tp,c45078193.filter,tp,LOCATION_DECK,0,1,1,nil)
if tg:GetCount()>0 then if tg:GetCount()>0 then
Duel.SendtoHand(tg,nil,REASON_EFFECT) Duel.SendtoHand(tg,nil,REASON_EFFECT)
...@@ -76,7 +77,7 @@ function c45078193.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +77,7 @@ function c45078193.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetPreviousLocation()==LOCATION_SZONE and not c:IsReason(REASON_LOST_TARGET) return c:GetPreviousLocation()==LOCATION_SZONE and not c:IsReason(REASON_LOST_TARGET)
end end
function c45078193.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45078193.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
......
...@@ -65,7 +65,7 @@ function c46290741.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,7 +65,7 @@ function c46290741.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c46290741.spop(e,tp,eg,ep,ev,re,r,rp,c) function c46290741.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -90,12 +90,12 @@ function c57135971.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,12 +90,12 @@ function c57135971.desop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Def --Def
local e1=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_EQUIP) e2:SetType(EFFECT_TYPE_EQUIP)
e1:SetCode(EFFECT_SET_DEFENSE) e2:SetCode(EFFECT_SET_DEFENSE)
e1:SetValue(c:GetDefense()) e2:SetValue(c:GetDefense())
e1:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e2)
--Equip limit --Equip limit
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -67,7 +67,8 @@ function c6890729.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -67,7 +67,8 @@ function c6890729.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end end
function c6890729.thop(e,tp,eg,ep,ev,re,r,rp) function c6890729.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c6890729.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c6890729.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
......
...@@ -16,7 +16,7 @@ function c71340250.initial_effect(c) ...@@ -16,7 +16,7 @@ function c71340250.initial_effect(c)
e2:SetDescription(aux.Stringid(71340250,1)) e2:SetDescription(aux.Stringid(71340250,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1,71340250+100) e2:SetCountLimit(1,71340251)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCost(c71340250.spcost) e2:SetCost(c71340250.spcost)
e2:SetTarget(c71340250.sptg) e2:SetTarget(c71340250.sptg)
......
...@@ -25,7 +25,7 @@ function c73828446.initial_effect(c) ...@@ -25,7 +25,7 @@ function c73828446.initial_effect(c)
--banish --banish
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(73828446,0)) e4:SetDescription(aux.Stringid(73828446,0))
e4:SetCategory(CATEGORY_DAMAGE) e4:SetCategory(CATEGORY_REMOVE)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_BATTLE_DESTROYING) e4:SetCode(EVENT_BATTLE_DESTROYING)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
...@@ -88,14 +88,6 @@ function c73828446.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,14 +88,6 @@ function c73828446.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end end
end end
function c73828446.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TODECK,e:GetHandler(),1,0,0)
end
function c73828446.retop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_EFFECT)
end
function c73828446.spcon(e,tp,eg,ep,ev,re,r,rp) function c73828446.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP) return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP)
......
...@@ -79,7 +79,7 @@ function c7445307.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -79,7 +79,7 @@ function c7445307.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c7445307.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c7445307.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c7445307.rmfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack()) end if chk==0 then return Duel.IsExistingMatchingCard(c7445307.rmfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack()) end
local g=Duel.GetMatchingGroup(c7445307.rmfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetHandler():GetAttack()) local g=Duel.GetMatchingGroup(c7445307.rmfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetHandler():GetAttack())
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
......
...@@ -14,8 +14,7 @@ function c77642288.initial_effect(c) ...@@ -14,8 +14,7 @@ function c77642288.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c77642288.spcon(e,tp,eg,ep,ev,re,r,rp) function c77642288.spcon(e,tp,eg,ep,ev,re,r,rp)
local st=e:GetHandler():GetSummonType() return aux.gbspcon(e,tp,eg,ep,ev,re,r,rp)
return st>=(SUMMON_TYPE_SPECIAL+100) and st<(SUMMON_TYPE_SPECIAL+150)
and e:GetHandler():GetBattledGroupCount()>0 and e:GetHandler():GetBattledGroupCount()>0
end end
function c77642288.filter(c,e,tp) function c77642288.filter(c,e,tp)
......
...@@ -18,7 +18,7 @@ function c82562802.initial_effect(c) ...@@ -18,7 +18,7 @@ function c82562802.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,82562802+100) e2:SetCountLimit(1,82562803)
e2:SetCondition(c82562802.gycon) e2:SetCondition(c82562802.gycon)
e2:SetTarget(c82562802.gytg) e2:SetTarget(c82562802.gytg)
e2:SetOperation(c82562802.gyop) e2:SetOperation(c82562802.gyop)
...@@ -43,11 +43,12 @@ end ...@@ -43,11 +43,12 @@ end
function c82562802.filter2(c) function c82562802.filter2(c)
return c:IsSetCard(0x4093) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x4093) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
function c82562802.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c82562802.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c82562802.filter2,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c82562802.filter2,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c82562802.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c82562802.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=Duel.SelectMatchingCard(tp,c82562802.filter2,tp,LOCATION_DECK,0,1,1,nil) local tg=Duel.SelectMatchingCard(tp,c82562802.filter2,tp,LOCATION_DECK,0,1,1,nil)
if tg:GetCount()>0 then if tg:GetCount()>0 then
Duel.SendtoHand(tg,nil,REASON_EFFECT) Duel.SendtoHand(tg,nil,REASON_EFFECT)
...@@ -86,7 +87,7 @@ function c82562802.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -86,7 +87,7 @@ function c82562802.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.SelectTarget(tp,c82562802.filter1,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,c82562802.filter1,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end end
function c82562802.op(e,tp,eg,ep,ev,re,r,rp,chk) function c82562802.op(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
......
...@@ -34,19 +34,18 @@ end ...@@ -34,19 +34,18 @@ end
function c82685480.activate(e,tp,eg,ep,ev,re,r,rp) function c82685480.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local tc=g:GetFirst() if Duel.Destroy(g,REASON_EFFECT)==0 then return end
local seq=0 local seq=0
local og=Duel.GetOperatedGroup()
local tc=og:GetFirst()
while tc do while tc do
local s=bit.lshift(0x1,tc:GetSequence()+16) seq=bit.replace(seq,0x1,tc:GetPreviousSequence())
if Duel.Destroy(tc,REASON_EFFECT)>0 then tc=og:GetNext()
seq=bit.bor(seq,s)
end
tc=g:GetNext()
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE_FIELD) e1:SetCode(EFFECT_DISABLE_FIELD)
e1:SetLabel(seq) e1:SetLabel(seq*0x10000)
e1:SetOperation(c82685480.disop) e1:SetOperation(c82685480.disop)
e1:SetReset(RESET_PHASE+PHASE_END,2) e1:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
......
...@@ -45,7 +45,6 @@ function c83407038.initial_effect(c) ...@@ -45,7 +45,6 @@ function c83407038.initial_effect(c)
end end
function c83407038.target1(e,tp,eg,ep,ev,re,r,rp,chk) function c83407038.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local tn=Duel.GetTurnPlayer()
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
if ((ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE)) if ((ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE))
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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