Skip to content

Commit dbe1c26

Browse files
authored
Fix "R.B. Operation Test"
Special Summon filters caused conflict allowing improper selection of targets for first effect.
1 parent 043d0fc commit dbe1c26

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pre-release/c101302094.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ function s.initial_effect(c)
2525
c:RegisterEffect(e2)
2626
end
2727
s.listed_series={SET_RB}
28-
function s.spfilter(c,e,tp)
28+
function s.spfromgyfilter(c,e,tp)
2929
return c:IsLevelAbove(3) and c:IsSetCard(SET_RB) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
3030
end
3131
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
32-
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end
32+
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfromgyfilter(chkc,e,tp) end
3333
if chk==0 then return true end
34-
if Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
34+
if Duel.IsExistingTarget(s.spfromgyfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
3535
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
3636
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
3737
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
38-
local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
38+
local g=Duel.SelectTarget(tp,s.spfromgyfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
3939
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,0)
4040
else
4141
e:SetCategory(0)
@@ -61,7 +61,7 @@ function s.recthsptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
6161
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,#g,tp,0)
6262
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
6363
end
64-
function s.spfilter(c,e,tp)
64+
function s.spfromhandfilter(c,e,tp)
6565
return c:IsSetCard(SET_RB) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
6666
end
6767
function s.recthspop(e,tp,eg,ep,ev,re,r,rp)
@@ -70,14 +70,14 @@ function s.recthspop(e,tp,eg,ep,ev,re,r,rp)
7070
local sum=tg:GetSum(Card.GetBaseAttack)
7171
if Duel.Recover(tp,sum,REASON_EFFECT)>0 and Duel.SendtoHand(tg,nil,REASON_EFFECT)>0 and Duel.GetMZoneCount(tp)>0
7272
and tg:FilterCount(Card.IsLocation,nil,LOCATION_HAND|LOCATION_EXTRA)>0
73-
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) then
73+
and Duel.IsExistingMatchingCard(s.spfromhandfilter,tp,LOCATION_HAND,0,1,nil,e,tp) then
7474
Duel.ShuffleHand(tp)
7575
if not Duel.SelectYesNo(tp,aux.Stringid(id,3)) then return end
7676
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
77-
local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
77+
local sg=Duel.SelectMatchingCard(tp,s.spfromhandfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
7878
if #sg>0 then
7979
Duel.BreakEffect()
8080
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
8181
end
8282
end
83-
end
83+
end

0 commit comments

Comments
 (0)