Skip to content

Commit 429c8c9

Browse files
committed
Properly fix Shining Hope Road (Manga)
Use the proper procedure
1 parent 222969c commit 429c8c9

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

unofficial/c511600071.lua

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function s.initial_effect(c)
1313
e1:SetOperation(s.activate)
1414
c:RegisterEffect(e1)
1515
end
16-
s.listed_series={SET_NUMBER,0x2048} --"Number S"
16+
s.listed_series={SET_NUMBER,SET_NUMBER_S}
1717
function s.matfilter(c,e)
1818
return c:IsSetCard(SET_NUMBER) and c:IsCanBeEffectTarget(e)
1919
end
@@ -24,12 +24,12 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
2424
if chkc then return false end
2525
local c=e:GetHandler()
2626
local mg=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_GRAVE,0,nil,e)
27-
local notSg=mg:Filter(aux.NOT(Card.IsSetCard),nil,0x2048)
27+
local notSg=mg:Filter(aux.NOT(Card.IsSetCard),nil,SET_NUMBER_S)
2828
for _c in notSg:Iter() do
2929
local e1=Effect.CreateEffect(c)
3030
e1:SetType(EFFECT_TYPE_SINGLE)
3131
e1:SetCode(EFFECT_ADD_SETCODE)
32-
e1:SetValue(0x2048)
32+
e1:SetValue(SET_NUMBER_S)
3333
_c:RegisterEffect(e1,true)
3434
_c:AssumeProperty(ASSUME_RANK,_c:GetRank()+1)
3535
end
@@ -48,22 +48,20 @@ end
4848
function s.activate(e,tp,eg,ep,ev,re,r,rp)
4949
local mg=Duel.GetTargetCards(e)
5050
local c=e:GetHandler()
51-
local notSg=mg:Filter(aux.NOT(Card.IsSetCard),nil,0x2048)
51+
local notSg=mg:Filter(aux.NOT(Card.IsSetCard),nil,SET_NUMBER_S)
5252
for _c in notSg:Iter() do
5353
local e1=Effect.CreateEffect(c)
5454
e1:SetType(EFFECT_TYPE_SINGLE)
5555
e1:SetCode(EFFECT_ADD_SETCODE)
56-
e1:SetValue(0x2048)
56+
e1:SetValue(SET_NUMBER_S)
5757
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
5858
_c:RegisterEffect(e1,true)
5959
_c:AssumeProperty(ASSUME_RANK,_c:GetRank()+1)
6060
end
6161
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
6262
local xyz=Duel.SelectMatchingCard(tp,Card.IsXyzSummonable,tp,LOCATION_EXTRA,0,1,1,nil,nil,mg,#mg,#mg):GetFirst()
63-
if xyz and #mg>0 and mg:Includes(notSg) then
64-
xyz:SetMaterial(mg)
65-
Duel.Overlay(xyz,mg)
66-
Duel.SpecialSummon(xyz,SUMMON_TYPE_XYZ,tp,tp,false,true,POS_FACEUP)
63+
if xyz then
64+
Duel.XyzSummon(tp,xyz,mg,mg,#mg,#mg)
6765
notSg:KeepAlive()
6866
notSg:ForEach(function(_c) _c:Level((_c:Level()+1)) end)
6967
local e1=Effect.CreateEffect(c)
@@ -76,7 +74,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
7674
e:Reset()
7775
end)
7876
xyz:RegisterEffect(e1,true)
79-
xyz:CompleteProcedure()
8077
else
8178
notSg:ForEach(function(_c) _c:ResetEffect(id,RESET_CARD) end)
8279
end

0 commit comments

Comments
 (0)