Skip to content

Commit 2ac4181

Browse files
committed
fixed cards that place multiple cards on the bottom of the Deck as a requirement
1 parent 46d73d1 commit 2ac4181

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

rush/c160003017.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
3535
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,4,4,nil)
3636
Duel.HintSelection(g)
3737
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
38-
Duel.SortDeckbottom(tp,tp,#g)
38+
local g2=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_DECK)
39+
if #g2>1 then
40+
Duel.SortDeckbottom(tp,tp,#g2)
41+
end
3942
--Effect
4043
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND,0,1,nil,e,tp) then
4144
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)

rush/c160017053.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3434
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,2,2,nil)
3535
Duel.HintSelection(g)
3636
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
37-
Duel.SortDeckbottom(tp,tp,#g)
37+
local g2=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_DECK)
38+
if #g2>1 then
39+
Duel.SortDeckbottom(tp,tp,#g2)
40+
end
3841
--Effect
3942
if Duel.GetLocationCount(tp,LOCATION_MZONE)==0 then return end
4043
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)

rush/c160020006.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3232
local td=aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,1,tp,HINTMSG_TODECK)
3333
Duel.HintSelection(td)
3434
if Duel.SendtoDeck(td,nil,SEQ_DECKBOTTOM,REASON_COST)<=0 then return end
35-
Duel.SortDeckbottom(tp,tp,#td)
35+
local g2=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_DECK)
36+
if #g2>1 then
37+
Duel.SortDeckbottom(tp,tp,#g2)
38+
end
3639
--Effect
3740
local sg=Duel.GetMatchingGroup(s.sfilter,tp,LOCATION_GRAVE,0,nil)
3841
if #sg>0 then

rush/c160320014.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3535
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,2,2,nil)
3636
Duel.HintSelection(g)
3737
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
38-
Duel.SortDeckbottom(tp,tp,#g)
38+
local g2=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_DECK)
39+
if #g2>1 then
40+
Duel.SortDeckbottom(tp,tp,#g2)
41+
end
3942
--Effect
4043
local dg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetHandler():GetAttack())
4144
if #dg>0 then

0 commit comments

Comments
 (0)