Skip to content

Commit daee579

Browse files
committed
update 'The Eye of Timaeus (Rush)'
- Added a hint message to be shown when the player selects a monster to send to the GY - prevent script errors when the player does not have any monster to send during the resolution of the effect
1 parent 7a13540 commit daee579

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

rush/c160021065.lua

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--ティマイオスの眼
2-
--The Eye of Timaeus
2+
--The Eye of Timaeus (Rush)
33
--scripted by YoshiDuels
44
local s,id=GetID()
55
function s.initial_effect(c)
@@ -62,15 +62,17 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6262
table.insert(announceFilter,OPCODE_ALLOW_ALIASES)
6363
end
6464
local code=Duel.AnnounceCard(tp,announceFilter)
65+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
6566
local tc=Duel.SelectMatchingCard(tp,s.matfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp,code):GetFirst()
66-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
67-
local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc)
68-
local sc=sg:GetFirst()
69-
if sc then
70-
sc:SetMaterial(Group.FromCards(tc))
71-
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
72-
Duel.BreakEffect()
73-
Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
74-
sc:CompleteProcedure()
67+
if tc then
68+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
69+
local sc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc):GetFirst()
70+
if sc then
71+
sc:SetMaterial(Group.FromCards(tc))
72+
Duel.SendtoGrave(tc,REASON_EFFECT|REASON_MATERIAL|REASON_FUSION)
73+
Duel.BreakEffect()
74+
Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
75+
sc:CompleteProcedure()
76+
end
7577
end
7678
end

0 commit comments

Comments
 (0)