Skip to content

Commit 75a0fb2

Browse files
committed
Script updates
Added hints to a few script that were not calling them when the player was prompted to select cards
1 parent 4082670 commit 75a0fb2

12 files changed

Lines changed: 20 additions & 8 deletions

official/c22593417.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ function s.hdop(e,tp,eg,ep,ev,re,r,rp)
6464
local g1=Duel.GetMatchingGroup(Card.IsDiscardable,tp,LOCATION_HAND,0,nil,REASON_EFFECT):RandomSelect(tp,sel)
6565
local rt=Duel.SendtoGrave(g1,REASON_EFFECT|REASON_DISCARD)
6666
if rt==0 or rt>Duel.GetMatchingGroupCount(Card.IsDiscardable,tp,0,LOCATION_HAND,nil,REASON_EFFECT) then return end
67+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
6768
local g2=Duel.GetMatchingGroup(Card.IsDiscardable,tp,0,LOCATION_HAND,nil,REASON_EFFECT):Select(1-tp,rt,rt,nil)
6869
Duel.SendtoGrave(g2,REASON_EFFECT|REASON_DISCARD)
6970
end

official/c23068051.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
4848
local ft=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
4949
local g=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_MZONE|LOCATION_HAND,0,nil)
5050
local ct=math.min(ft-1,#g+1)
51+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
5152
local sg=g:Select(tp,1,ct,nil)
5253
e:SetLabel(#sg+1)
5354
Duel.SendtoGrave(sg,REASON_COST)

official/c32360466.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3434
if #sg>0 then
3535
Duel.ConfirmCards(1-tp,sg)
3636
Duel.ShuffleDeck(tp)
37-
local tg=sg:Select(1-tp,1,1,nil)
38-
local tc=tg:GetFirst()
37+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
38+
local tc=sg:Select(1-tp,1,1,nil):GetFirst()
3939
Duel.Hint(HINT_CARD,0,tc:GetCode())
4040
if s.filter2(tc) and tc:IsAbleToHand() then
4141
Duel.SendtoHand(tc,nil,REASON_EFFECT)

rush/c160001041.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3131
if Duel.SendtoGrave(g,REASON_COST)>0 then
3232
local dg=Duel.GetMatchingGroup(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,nil)
3333
if #dg>0 then
34+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
3435
local sg=dg:Select(tp,1,1,nil)
3536
Duel.HintSelection(sg,true)
3637
Duel.Destroy(sg,REASON_EFFECT)

rush/c160001043.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3131
--Requirement
3232
Duel.DiscardHand(tp,Card.IsDiscardable,2,2,REASON_COST+REASON_DISCARD)
3333
--Effect
34+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
3435
local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil):GetFirst()
3536
Duel.HintSelection(Group.FromCards(tc))
3637
if tc and tc:IsFaceup() then

rush/c160002040.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
2626
--Effect
2727
local dg=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,0,LOCATION_MZONE,nil)
2828
if dg and #dg>0 then
29+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
2930
local sg=dg:Select(tp,1,1,nil)
3031
sg=sg:AddMaximumCheck()
3132
Duel.HintSelection(sg)

rush/c160002043.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2323
if chk==0 then return Duel.IsExistingMatchingCard(s.rvfilter,tp,LOCATION_HAND,0,1,nil,tp) end
2424
end
2525
function s.activate(e,tp,eg,ep,ev,re,r,rp)
26+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
2627
local tg=Duel.SelectMatchingCard(tp,s.rvfilter,tp,LOCATION_HAND,0,1,1,nil,tp):GetFirst()
2728
if tg then
2829
Duel.ConfirmCards(1-tp,tg)

rush/c160003038.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2525
end
2626
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2727
--Requirement
28+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
2829
local td=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE,0,1,1,nil)
2930
Duel.HintSelection(td)
30-
if Duel.SendtoDeck(td,nil,SEQ_DECKBOTTOM,REASON_COST)~0 then
31+
if Duel.SendtoDeck(td,nil,SEQ_DECKBOTTOM,REASON_COST)~=0 then
3132
--Effect
33+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN)
3234
local g=Duel.SelectMatchingCard(tp,Card.IsFacedown,tp,0,LOCATION_ONFIELD,1,1,nil):GetFirst()
3335
Duel.HintSelection(Group.FromCards(g))
3436
if g and g:IsFacedown() then

rush/c160003051.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
2626
--requirement
2727
if Duel.DiscardDeck(tp,1,REASON_COST)>0 then
2828
--Effect
29+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATKDEF)
2930
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil)
3031
if #g>0 then
3132
Duel.HintSelection(g)

rush/c160003060.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ end
3232
function s.activate(e,tp,eg,ep,ev,re,r,rp)
3333
--Effect
3434
local dg=Duel.GetMatchingGroup(aux.FilterMaximumSideFunctionEx(s.desfilter),tp,0,LOCATION_MZONE,nil)
35+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
3536
local sg=dg:Select(tp,1,1,nil)
3637
if #sg>0 then
3738
Duel.HintSelection(sg)

0 commit comments

Comments
 (0)