Skip to content

Commit ec68bb1

Browse files
committed
fixed cards that make the opponent Set a Spell/Trap
1 parent 6ab154f commit ec68bb1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

rush/c160013014.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ end
2222
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
2323
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,2,nil) end
2424
end
25-
function s.setfilter(c)
26-
return c:IsSpell() and c:IsSSetable()
25+
function s.setfilter(c,tp)
26+
return c:IsSpell() and c:IsSSetable(false, 1-tp)
2727
end
2828
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
29-
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,0,LOCATION_GRAVE,1,nil) end
29+
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,0,LOCATION_GRAVE,1,nil,tp) end
3030
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,1-tp,LOCATION_GRAVE)
3131
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
3232
end
@@ -41,7 +41,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4141
if not Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST) then return end
4242
--Effect
4343
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
44-
local g=Duel.SelectMatchingCard(1-tp,s.setfilter,tp,0,LOCATION_GRAVE,1,1,nil)
44+
local g=Duel.SelectMatchingCard(1-tp,s.setfilter,tp,0,LOCATION_GRAVE,1,1,nil,tp)
4545
if #g>0 then
4646
Duel.SSet(1-tp,g)
4747
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then

rush/c160428085.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2121
if chk==0 then return true end
2222
Duel.SetPossibleOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0)
2323
end
24-
function s.cfilter(c)
25-
return c:IsSpellTrap() and c:IsSSetable()
24+
function s.cfilter(c,tp)
25+
return c:IsSpellTrap() and c:IsSSetable(false, 1-tp)
2626
end
2727
function s.rescon(ft)
2828
return function(sg,e,tp,mg)
@@ -36,7 +36,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3636
if #hg>0 then
3737
Duel.ConfirmCards(tp,hg)
3838
local ft=Duel.GetLocationCount(1-tp,LOCATION_SZONE)
39-
local g=hg:Filter(s.cfilter,nil)
39+
local g=hg:Filter(s.cfilter,nil,tp)
4040
local ct=math.min(#g,ft+1,3)
4141
local sg=aux.SelectUnselectGroup(g,e,tp,1,ct,s.rescon(ft),1,tp,HINTMSG_SET)
4242
if #sg>0 then

rush/c160434002.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ function s.initial_effect(c)
1515
e1:SetOperation(s.operation)
1616
c:RegisterEffect(e1)
1717
end
18-
function s.setfilter(c)
19-
return c:IsSpellTrap() and c:IsSSetable()
18+
function s.setfilter(c,tp)
19+
return c:IsSpellTrap() and c:IsSSetable(false, 1-tp)
2020
end
2121
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
22-
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,0,LOCATION_GRAVE,1,nil) end
22+
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,0,LOCATION_GRAVE,1,nil,tp) end
2323
end
2424
function s.thfilter(c)
2525
return c:IsMonster() and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsLevelAbove(7) and c:IsAbleToHand()
2626
end
2727
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2828
--Effect
2929
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
30-
local g=Duel.SelectMatchingCard(tp,s.setfilter,tp,0,LOCATION_GRAVE,1,1,nil)
30+
local g=Duel.SelectMatchingCard(tp,s.setfilter,tp,0,LOCATION_GRAVE,1,1,nil,tp)
3131
if #g>0 then
3232
Duel.SSet(1-tp,g)
3333
if Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then

0 commit comments

Comments
 (0)