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
735c1d38
Commit
735c1d38
authored
Nov 18, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6a36f1b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
script/c100257031.lua
script/c100257031.lua
+5
-11
script/c100257096.lua
script/c100257096.lua
+4
-4
script/c101012049.lua
script/c101012049.lua
+1
-1
No files found.
script/c100257031.lua
View file @
735c1d38
...
...
@@ -58,32 +58,26 @@ end
function
c100257031
.
splimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0x8
)
end
function
c100257031
.
ffilter
(
c
)
function
c100257031
.
ffilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x8
)
and
c
.
material
and
Duel
.
IsExistingMatchingCard
(
c100257031
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c100257031
.
thfilter
(
c
,
fc
)
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c100257031
.
fselect
(
g
)
if
g
:
GetClassCount
(
Card
.
GetCode
)
==
g
:
GetCount
()
then
Duel
.
SetSelectedCard
(
g
)
return
true
else
return
false
end
end
function
c100257031
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100257031
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100257031
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
function
c100257031
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
rc
=
Duel
.
SelectMatchingCard
(
tp
,
c100257031
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
):
GetFirst
()
local
rc
=
Duel
.
SelectMatchingCard
(
tp
,
c100257031
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
rc
then
Duel
.
ConfirmCards
(
1
-
tp
,
rc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
GetMatchingGroup
(
c100257031
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
rc
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c100257031
.
fselect
,
false
,
1
,
2
)
if
sg
:
GetCount
()
>
0
then
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
1
,
2
)
if
sg
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
...
...
script/c100257096.lua
View file @
735c1d38
...
...
@@ -9,16 +9,16 @@ function c100257096.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_
BE
_BATTLE_TARGET
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetCode
(
EFFECT_CANNOT_
SELECT
_BATTLE_TARGET
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCondition
(
c100257096
.
atcon
)
e1
:
SetTarget
(
c100257096
.
attg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetValue
(
c100257096
.
attg
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c100257096
.
attg
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
--token
...
...
script/c101012049.lua
View file @
735c1d38
...
...
@@ -50,7 +50,7 @@ function c101012049.tkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsCode
,
10101214
9
))
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsCode
,
4806837
9
))
e1
:
SetValue
(
c101012049
.
lklimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
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