Commit e5957b34 authored by VanillaSalt's avatar VanillaSalt

fix

parent de83d390
...@@ -66,7 +66,7 @@ end ...@@ -66,7 +66,7 @@ end
function c10530913.thcon(e,tp,eg,ep,ev,re,r,rp) function c10530913.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c10530913.thfilter(c) function c10530913.thfilter(c)
return c:IsSetCard(0x90) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x90) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ end
function c10753491.spcon(e,tp,eg,ep,ev,re,r,rp) function c10753491.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c10753491.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c10753491.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,10753491)==0 end if chk==0 then return Duel.GetFlagEffect(tp,10753491)==0 end
......
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function c11682713.tdcon(e,tp,eg,ep,ev,re,r,rp) function c11682713.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c11682713.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c11682713.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end if chk==0 then return e:GetHandler():IsAbleToHand() end
......
...@@ -8,10 +8,6 @@ function c23681456.initial_effect(c) ...@@ -8,10 +8,6 @@ function c23681456.initial_effect(c)
e1:SetTarget(c23681456.target) e1:SetTarget(c23681456.target)
e1:SetOperation(c23681456.operation) e1:SetOperation(c23681456.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not c23681456.global_check then
c23681456.global_check=true
c23681456.count=0
end
end end
function c23681456.filter(c,e,tp) function c23681456.filter(c,e,tp)
return c:IsSetCard(0x71) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x71) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -27,33 +23,34 @@ function c23681456.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -27,33 +23,34 @@ function c23681456.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c23681456.filter,tp,LOCATION_HAND,0,1,ft,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c23681456.filter,tp,LOCATION_HAND,0,1,ft,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
c23681456.count=c23681456.count+1 local fid=e:GetHandler():GetFieldID()
local tc=g:GetFirst() local tc=g:GetFirst()
local id=c23681456.count*100000000+23681456
while tc do while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
tc:RegisterFlagEffect(id,RESET_EVENT+0x1fe0000,0,1) tc:RegisterFlagEffect(23681456,RESET_EVENT+0x1fe0000,0,1,fid)
tc=g:GetNext() tc=g:GetNext()
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
g:KeepAlive()
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetLabel(id) e1:SetLabel(fid)
e1:SetLabelObject(g)
e1:SetOperation(c23681456.retop) e1:SetOperation(c23681456.retop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
function c23681456.retfilter(c,id) function c23681456.retfilter(c,fid)
return c:GetFlagEffect(id)>0 return c:GetFlagEffectLabel(23681456)==fid
end end
function c23681456.retop(e,tp,eg,ep,ev,re,r,rp) function c23681456.retop(e,tp,eg,ep,ev,re,r,rp)
local id=e:GetLabel() local g=e:GetLabelObject()
local g=Duel.GetMatchingGroup(c23681456.retfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,id) local tg=g:Filter(c23681456.retfilter,nil,e:GetLabel())
if g:GetCount()>0 then Duel.SendtoDeck(tg,nil,2,REASON_EFFECT)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) if not g:IsExists(c23681456.retfilter,1,nil,e:GetLabel()) then
else g:DeleteGroup()
e:Reset() e:Reset()
end end
end end
...@@ -37,7 +37,7 @@ end ...@@ -37,7 +37,7 @@ end
function c25824484.sdcon(e,tp,eg,ep,ev,re,r,rp) function c25824484.sdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c25824484.sdop(e,tp,eg,ep,ev,re,r,rp) function c25824484.sdop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0) local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
......
...@@ -55,6 +55,7 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,6 +55,7 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if tc then if tc then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
tc:RegisterFlagEffect(34680482,RESET_EVENT+0x1fe0000,0,1,Duel.GetTurnCount())
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
...@@ -63,21 +64,23 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,21 +64,23 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetLabel(Duel.GetTurnCount()) e2:SetLabel(Duel.GetTurnCount())
e2:SetLabelObject(tc)
e2:SetCondition(c34680482.tdcon) e2:SetCondition(c34680482.tdcon)
e2:SetOperation(c34680482.tdop) e2:SetOperation(c34680482.tdop)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
e2:SetCountLimit(1) e2:SetCountLimit(1)
tc:RegisterEffect(e2) Duel.RegisterEffect(e2,tp)
end end
end end
function c34680482.tdcon(e,tp,eg,ep,ev,re,r,rp) function c34680482.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()==e:GetLabel()+2 return Duel.GetTurnCount()~=e:GetLabel() and Duel.GetTurnPlayer()==tp
end end
function c34680482.tdop(e,tp,eg,ep,ev,re,r,rp) function c34680482.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_EFFECT) local tc=e:GetLabelObject()
e:Reset() if tc:GetFlagEffectLabel(34680482)==e:GetLabel() then
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
end end
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ end
function c36046926.descon(e,tp,eg,ep,ev,re,r,rp) function c36046926.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c36046926.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36046926.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end
......
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function c47077318.tdcon(e,tp,eg,ep,ev,re,r,rp) function c47077318.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c47077318.filter(c) function c47077318.filter(c)
return c:IsFaceup() and c:IsRace(RACE_PLANT) return c:IsFaceup() and c:IsRace(RACE_PLANT)
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function c47741109.condition(e,tp,eg,ep,ev,re,r,rp) function c47741109.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD) or (c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD) or (c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)))
end end
function c47741109.target(e,tp,eg,ep,ev,re,r,rp,chk) function c47741109.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......
...@@ -36,7 +36,7 @@ function c48445393.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c48445393.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
......
...@@ -17,7 +17,7 @@ function c51865604.initial_effect(c) ...@@ -17,7 +17,7 @@ function c51865604.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_CHAIN_UNIQUE)
e2:SetCode(EVENT_REMOVE) e2:SetCode(EVENT_REMOVE)
e2:SetCondition(c51865604.spcon) e2:SetCondition(c51865604.spcon)
e2:SetCost(c51865604.spcost) e2:SetCost(c51865604.spcost)
......
...@@ -38,7 +38,7 @@ end ...@@ -38,7 +38,7 @@ end
function c62434031.tdcon(e,tp,eg,ep,ev,re,r,rp) function c62434031.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c62434031.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c62434031.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x90) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x90) end
......
...@@ -43,7 +43,7 @@ end ...@@ -43,7 +43,7 @@ end
function c63257623.spcon(e,tp,eg,ep,ev,re,r,rp) function c63257623.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c63257623.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c63257623.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,63257623)==0 end if chk==0 then return Duel.GetFlagEffect(tp,63257623)==0 end
......
...@@ -47,7 +47,7 @@ end ...@@ -47,7 +47,7 @@ end
function c73136204.tdcon(e,tp,eg,ep,ev,re,r,rp) function c73136204.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c73136204.filter(c) function c73136204.filter(c)
return c:IsSetCard(0x90) and not c:IsCode(73136204) and c:IsAbleToDeck() return c:IsSetCard(0x90) and not c:IsCode(73136204) and c:IsAbleToDeck()
......
...@@ -15,7 +15,7 @@ function c81210420.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c81210420.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and Duel.GetCurrentPhase()==PHASE_BATTLE return Duel.GetTurnPlayer()~=tp and Duel.GetCurrentPhase()==PHASE_BATTLE
end end
function c81210420.filter(c) function c81210420.filter(c)
return c:IsFacedown() or c:IsCanTurnSet() return not c:IsType(TYPE_TOKEN)
end end
function c81210420.spfilter(c,e,tp) function c81210420.spfilter(c,e,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEDOWN) return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEDOWN)
......
...@@ -25,23 +25,23 @@ end ...@@ -25,23 +25,23 @@ end
function c82016179.activate(e,tp,eg,ep,ev,re,r,rp) function c82016179.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
if Duel.Draw(p,d,REASON_EFFECT)==3 then if Duel.Draw(p,d,REASON_EFFECT)==3 then
Duel.ShuffleHand(tp) Duel.ShuffleHand(p)
Duel.BreakEffect() Duel.BreakEffect()
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,p,LOCATION_HAND,0,nil)
if g:GetCount()>1 and g:IsExists(Card.IsSetCard,1,nil,0x90) then if g:GetCount()>1 and g:IsExists(Card.IsSetCard,1,nil,0x90) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK)
local sg1=g:FilterSelect(tp,Card.IsSetCard,1,1,nil,0x90) local sg1=g:FilterSelect(p,Card.IsSetCard,1,1,nil,0x90)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK)
local sg2=g:Select(tp,1,1,sg1:GetFirst()) local sg2=g:Select(p,1,1,sg1:GetFirst())
sg1:Merge(sg2) sg1:Merge(sg2)
Duel.ConfirmCards(1-tp,sg1) Duel.ConfirmCards(1-p,sg1)
Duel.SendtoDeck(sg1,nil,0,REASON_EFFECT) Duel.SendtoDeck(sg1,nil,0,REASON_EFFECT)
Duel.SortDecktop(tp,tp,2) Duel.SortDecktop(p,p,2)
else else
local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local hg=Duel.GetFieldGroup(p,LOCATION_HAND,0)
Duel.ConfirmCards(1-tp,hg) Duel.ConfirmCards(1-p,hg)
local ct=Duel.SendtoDeck(hg,nil,0,REASON_EFFECT) local ct=Duel.SendtoDeck(hg,nil,0,REASON_EFFECT)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(p,p,ct)
end end
end end
end end
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ end
function c99429730.tdcon(e,tp,eg,ep,ev,re,r,rp) function c99429730.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c99429730.filter(c) function c99429730.filter(c)
return c:IsRace(RACE_PLANT) and c:IsAbleToDeck() return c:IsRace(RACE_PLANT) and c:IsAbleToDeck()
......
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ end
function c99641328.descon(e,tp,eg,ep,ev,re,r,rp) function c99641328.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK)) (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end end
function c99641328.desfilter(c) function c99641328.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
......
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