Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
a245f486
Commit
a245f486
authored
Sep 20, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1379380f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
script/c101111060.lua
script/c101111060.lua
+1
-0
script/c101111075.lua
script/c101111075.lua
+9
-10
No files found.
script/c101111060.lua
View file @
a245f486
...
@@ -41,6 +41,7 @@ function s.initial_effect(c)
...
@@ -41,6 +41,7 @@ function s.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCountLimit
(
1
,
id
)
e5
:
SetCost
(
s
.
descost
)
e5
:
SetCost
(
s
.
descost
)
e5
:
SetTarget
(
s
.
destg
)
e5
:
SetTarget
(
s
.
destg
)
e5
:
SetOperation
(
s
.
desop
)
e5
:
SetOperation
(
s
.
desop
)
...
...
script/c101111075.lua
View file @
a245f486
...
@@ -60,26 +60,25 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,26 +60,25 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_RULE
)
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_RULE
)
end
end
end
end
function
s
.
thfilter
(
c
,
tp
)
function
s
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x189
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x189
)
and
c
:
IsAbleToHand
()
and
c
:
IsAbleToHand
()
and
c
:
GetOwner
()
==
tp
end
end
function
s
.
xfilter
(
c
)
function
s
.
xfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x189
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x189
)
and
c
:
GetOverlayGroup
():
IsExists
(
s
.
thfilter
,
1
,
nil
)
and
c
:
GetOverlayGroup
():
IsExists
(
s
.
thfilter
,
1
,
nil
,
tp
)
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
xfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
xfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_OVERLAY
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_OVERLAY
)
end
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
mg
=
tc
:
GetOverlayGroup
():
Filter
(
s
.
thfilter
,
nil
)
local
mg
=
tc
:
GetOverlayGroup
():
Filter
(
s
.
thfilter
,
nil
,
tp
)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
#
mg
>
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
#
mg
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
bc
=
mg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
bc
=
mg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
Duel
.
SendtoHand
(
bc
,
nil
,
REASON_EFFECT
)
>
0
if
Duel
.
SendtoHand
(
bc
,
nil
,
REASON_EFFECT
)
>
0
...
...
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