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
d3be0180
You need to sign in or sign up before continuing.
Commit
d3be0180
authored
Jul 19, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fb68361b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
43 deletions
+50
-43
script/c101102006.lua
script/c101102006.lua
+16
-12
script/c101102007.lua
script/c101102007.lua
+25
-21
script/c101102008.lua
script/c101102008.lua
+9
-10
No files found.
script/c101102006.lua
View file @
d3be0180
...
@@ -32,28 +32,32 @@ end
...
@@ -32,28 +32,32 @@ end
function
c101102006
.
cfilter
(
c
)
function
c101102006
.
cfilter
(
c
)
return
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
c101102006
.
fselect
(
g
,
e
,
tp
)
function
c101102006
.
fselect
(
g
,
tg
)
return
Duel
.
IsExistingMatchingCard
(
c101102006
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
:
GetCount
()
)
return
tg
:
IsExists
(
Card
.
IsLink
,
1
,
nil
,
#
g
)
end
end
function
c101102006
.
spfilter
(
c
,
e
,
tp
,
lk
)
function
c101102006
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsLink
(
lk
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
c101102006
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101102006
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
cg
=
Duel
.
GetMatchingGroup
(
c101102006
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
c101102006
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
local
_
,
maxlink
=
tg
:
GetMaxGroup
(
Card
.
GetLink
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
cg
=
Duel
.
GetMatchingGroup
(
c101102006
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
#
tg
==
0
then
return
false
end
local
ct
=
cg
:
GetCount
()
return
cg
:
CheckSubGroup
(
c101102006
.
fselect
,
1
,
maxlink
,
tg
)
return
cg
:
CheckSubGroup
(
c101102006
.
fselect
,
1
,
ct
,
e
,
tp
)
end
end
local
cg
=
Duel
.
GetMatchingGroup
(
c101102006
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
ct
=
cg
:
GetCount
()
local
rg
=
cg
:
SelectSubGroup
(
tp
,
c101102006
.
fselect
,
false
,
1
,
maxlink
,
tg
)
local
rg
=
cg
:
SelectSubGroup
(
tp
,
c101102006
.
fselect
,
false
,
1
,
ct
,
e
,
tp
,
ct
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
e
:
SetLabel
(
rg
:
GetCount
())
e
:
SetLabel
(
rg
:
GetCount
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c101102006
.
spfilter1
(
c
,
e
,
tp
,
lk
)
return
c101102006
.
spfilter
(
c
,
e
,
tp
)
and
c
:
IsLink
(
lk
)
end
function
c101102006
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101102006
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -67,7 +71,7 @@ function c101102006.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +71,7 @@ function c101102006.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
lk
=
e
:
GetLabel
()
local
lk
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101102006
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
lk
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101102006
.
spfilter
1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
lk
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
script/c101102007.lua
View file @
d3be0180
...
@@ -50,42 +50,46 @@ end
...
@@ -50,42 +50,46 @@ end
function
c101102007
.
cfilter1
(
c
)
function
c101102007
.
cfilter1
(
c
)
return
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
c101102007
.
fselect
(
g
,
e
,
tp
)
function
c101102007
.
fselect
(
g
,
tg
)
return
Duel
.
IsExistingMatchingCard
(
c101102007
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
:
GetCount
()
)
return
tg
:
IsExists
(
Card
.
IsLink
,
1
,
nil
,
#
g
)
end
end
function
c101102007
.
spfilter
(
c
,
e
,
tp
,
lk
)
function
c101102007
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsLink
(
lk
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
c101102007
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101102007
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
cg
=
Duel
.
GetMatchingGroup
(
c101102007
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
c101102007
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
local
_
,
maxlink
=
tg
:
GetMaxGroup
(
Card
.
GetLink
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
cg
=
Duel
.
GetMatchingGroup
(
c101102007
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
#
tg
==
0
then
return
false
end
local
ct
=
cg
:
GetCount
()
return
cg
:
CheckSubGroup
(
c101102007
.
fselect
,
1
,
maxlink
,
tg
)
return
cg
:
CheckSubGroup
(
c101102007
.
fselect
,
1
,
ct
,
e
,
tp
)
end
end
local
cg
=
Duel
.
GetMatchingGroup
(
c101102007
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
ct
=
cg
:
GetCount
()
local
rg
=
cg
:
SelectSubGroup
(
tp
,
c101102007
.
fselect
,
false
,
1
,
maxlink
,
tg
)
local
rg
=
cg
:
SelectSubGroup
(
tp
,
c101102007
.
fselect
,
false
,
1
,
ct
,
e
,
tp
,
ct
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
e
:
SetLabel
(
rg
:
GetCount
())
e
:
SetLabel
(
rg
:
GetCount
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c101102007
.
spfilter1
(
c
,
e
,
tp
,
lk
)
return
c101102007
.
spfilter
(
c
,
e
,
tp
)
and
c
:
IsLink
(
lk
)
end
function
c101102007
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101102007
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e
2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e
1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e
2
:
SetType
(
EFFECT_TYPE_FIELD
)
e
1
:
SetType
(
EFFECT_TYPE_FIELD
)
e
2
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e
1
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e
2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e
1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e
2
:
SetTargetRange
(
0xff
,
0xff
)
e
1
:
SetTargetRange
(
0xff
,
0xff
)
e
2
:
SetTarget
(
aux
.
NOT
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)))
e
1
:
SetTarget
(
aux
.
NOT
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)))
e
2
:
SetValue
(
c101102007
.
sumlimit
)
e
1
:
SetValue
(
c101102007
.
sumlimit
)
e
2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e
1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
Duel
.
RegisterEffect
(
e
1
,
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
lk
=
e
:
GetLabel
()
local
lk
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101102007
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
lk
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101102007
.
spfilter
1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
lk
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
script/c101102008.lua
View file @
d3be0180
...
@@ -59,7 +59,6 @@ function c101102008.spfilter(c,e,tp)
...
@@ -59,7 +59,6 @@ function c101102008.spfilter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
c101102008
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101102008
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
cg
=
Duel
.
GetMatchingGroup
(
c101102008
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
cg
=
Duel
.
GetMatchingGroup
(
c101102008
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
c101102008
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
local
tg
=
Duel
.
GetMatchingGroup
(
c101102008
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
local
_
,
maxlink
=
tg
:
GetMaxGroup
(
Card
.
GetLink
)
local
_
,
maxlink
=
tg
:
GetMaxGroup
(
Card
.
GetLink
)
...
@@ -79,15 +78,15 @@ function c101102008.spfilter1(c,e,tp,lk)
...
@@ -79,15 +78,15 @@ function c101102008.spfilter1(c,e,tp,lk)
return
c101102008
.
spfilter
(
c
,
e
,
tp
)
and
c
:
IsLink
(
lk
)
return
c101102008
.
spfilter
(
c
,
e
,
tp
)
and
c
:
IsLink
(
lk
)
end
end
function
c101102008
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101102008
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e
2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e
1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e
2
:
SetType
(
EFFECT_TYPE_FIELD
)
e
1
:
SetType
(
EFFECT_TYPE_FIELD
)
e
2
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e
1
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e
2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e
1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e
2
:
SetTargetRange
(
0xff
,
0xff
)
e
1
:
SetTargetRange
(
0xff
,
0xff
)
e
2
:
SetTarget
(
aux
.
NOT
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)))
e
1
:
SetTarget
(
aux
.
NOT
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_BEAST
+
RACE_BEASTWARRIOR
+
RACE_WINDBEAST
)))
e
2
:
SetValue
(
c101102008
.
sumlimit
)
e
1
:
SetValue
(
c101102008
.
sumlimit
)
e
2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e
1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
Duel
.
RegisterEffect
(
e
1
,
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
lk
=
e
:
GetLabel
()
local
lk
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
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