Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
60a8d098
Commit
60a8d098
authored
Apr 23, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8e611279
Pipeline
#35460
passed with stages
in 67 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
expansions/script/c47350500.lua
expansions/script/c47350500.lua
+22
-9
No files found.
expansions/script/c47350500.lua
View file @
60a8d098
...
@@ -57,31 +57,44 @@ function Lost_In_Mirror.eff3op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,31 +57,44 @@ function Lost_In_Mirror.eff3op(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFacedown
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFacedown
()
and
tc
:
IsRelateToEffect
(
e
)
then
Lost_In_Mirror
.
confirm
(
tp
,
tc
)
Lost_In_Mirror
.
confirm
(
tp
,
tc
)
local
check
=
Duel
.
GetFlagEffect
(
tp
,
47370213
)
~=
0
if
tc
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
>
0
then
if
tc
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
>
0
then
if
tc
:
IsPreviousControler
(
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
tc
:
IsPreviousControler
(
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Lost_In_Mirror
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tc
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
Lost_In_Mirror
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tc
:
GetCode
()
,
check
)
and
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
47350500
,
0
))
then
and
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
47350500
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Lost_In_Mirror
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc
:
GetCode
())
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Lost_In_Mirror
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc
:
GetCode
()
,
check
)
if
#
sg
==
0
then
return
end
if
#
sg
==
0
then
return
end
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
if
Duel
.
MoveToField
(
sc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
true
)
then
if
sc
:
IsSetCard
(
0x6ca1
)
and
sc
:
IsType
(
TYPE_MONSTER
)
then
if
Duel
.
MoveToField
(
sc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
true
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_TRAP
)
sc
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
sc
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tc
:
GetOwner
(),
nil
,
0
)
end
else
Duel
.
SSet
(
tp
,
sc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
Set
Property
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
Set
Code
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
Set
Reset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
Set
Property
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
Set
Value
(
TYPE_TRAP
)
e1
:
Set
Reset
(
RESET_EVENT
+
RESETS_STANDARD
)
sc
:
RegisterEffect
(
e1
)
sc
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
sc
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tc
:
GetOwner
(),
nil
,
0
)
end
end
end
end
end
end
end
end
end
end
function
Lost_In_Mirror
.
setfilter
(
c
,
code
)
function
Lost_In_Mirror
.
setfilter
(
c
,
code
,
check
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsRace
(
RACE_FIEND
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsRace
(
RACE_FIEND
)
or
(
check
and
c
:
IsSetCard
(
0x9ca1
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsSSetable
())
end
end
function
Lost_In_Mirror
.
confirm
(
tp
,
tc
)
function
Lost_In_Mirror
.
confirm
(
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment