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
039ecb95
Commit
039ecb95
authored
Nov 03, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8b6a906e
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
28 additions
and
21 deletions
+28
-21
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100270203.lua
script/c100270203.lua
+1
-1
script/c100270208.lua
script/c100270208.lua
+1
-1
script/c100270209.lua
script/c100270209.lua
+4
-4
script/c100270210.lua
script/c100270210.lua
+3
-2
script/c100270211.lua
script/c100270211.lua
+1
-0
script/c100270212.lua
script/c100270212.lua
+1
-0
script/c100270213.lua
script/c100270213.lua
+2
-1
script/c100270214.lua
script/c100270214.lua
+1
-1
script/c100270216.lua
script/c100270216.lua
+2
-1
script/c101102084.lua
script/c101102084.lua
+1
-1
script/c101102085.lua
script/c101102085.lua
+1
-1
script/c101102086.lua
script/c101102086.lua
+2
-1
script/c101102092.lua
script/c101102092.lua
+1
-1
script/c101102096.lua
script/c101102096.lua
+1
-1
script/c101103041.lua
script/c101103041.lua
+6
-5
No files found.
expansions/pre-release.cdb
View file @
039ecb95
No preview for this file type
script/c100270203.lua
View file @
039ecb95
...
...
@@ -43,7 +43,7 @@ function c100270203.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c100270203
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
c
m
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c
100270203
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
script/c100270208.lua
View file @
039ecb95
...
...
@@ -68,7 +68,7 @@ function c100270208.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
script/c100270209.lua
View file @
039ecb95
...
...
@@ -41,7 +41,7 @@ function c100270209.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c100270209
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c100270209
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100270209
.
sp
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100270209
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c100270209
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -50,14 +50,14 @@ function c100270209.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c100270209
.
cfilter
(
c
,
tp
)
function
c100270209
.
cfilter
1
(
c
,
tp
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
,
tp
)
>
0
end
function
c100270209
.
spcost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c100270209
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c100270209
.
cfilter
1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100270209
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100270209
.
cfilter
1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
...
...
script/c100270210.lua
View file @
039ecb95
...
...
@@ -28,6 +28,7 @@ function c100270210.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e3
)
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -48,7 +49,7 @@ function c100270210.mfilter(c)
end
function
c100270210
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
if
g
:
IsExists
(
Card
.
IsLinkCode
,
1
,
nil
,
10027020
1
)
then
if
g
:
IsExists
(
Card
.
IsLinkCode
,
1
,
nil
,
10027020
6
)
then
e
:
GetLabelObject
():
SetLabel
(
1
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
...
...
@@ -80,7 +81,7 @@ function c100270210.spcon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
tp
and
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
end
function
c100270210
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100270210
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100270210
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c100270210
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c100270211.lua
View file @
039ecb95
...
...
@@ -11,6 +11,7 @@ function c100270211.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c100270212.lua
View file @
039ecb95
...
...
@@ -11,6 +11,7 @@ function c100270212.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c100270213.lua
View file @
039ecb95
...
...
@@ -22,6 +22,7 @@ function c100270213.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e2
)
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -43,7 +44,7 @@ function c100270213.thcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c100270213
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x25
5
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x25
6
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
function
c100270213
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100270213
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c100270214.lua
View file @
039ecb95
...
...
@@ -76,5 +76,5 @@ function c100270214.con(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
end
function
c100270214
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
Duel
.
SkipPhase
(
Duel
.
GetTurnPlayer
()
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
\ No newline at end of file
script/c100270216.lua
View file @
039ecb95
...
...
@@ -74,7 +74,7 @@ function c100270216.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
tc
:
GetLink
()
*
800
)
c
:
RegisterEffect
(
e1
)
end
...
...
@@ -88,6 +88,7 @@ function c100270216.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
bc
,
1
,
0
,
0
)
end
function
c100270216
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
zone
=
Duel
.
GetLinkedZone
(
tp
)
&
0x1f
if
zone
~=
0
and
tc
:
IsRelateToEffect
(
e
)
then
...
...
script/c101102084.lua
View file @
039ecb95
...
...
@@ -72,7 +72,7 @@ function c101102084.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
+
REASON_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
cost
=
Duel
.
SelectMatchingCard
(
tp
,
c101102084
.
spcostfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
,
e
:
GetHandler
())
local
cost
=
Duel
.
SelectMatchingCard
(
tp
,
c101102084
.
spcostfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
,
e
:
GetHandler
())
:
GetFirst
()
e
:
SetLabel
(
cost
:
GetType
())
Duel
.
Remove
(
cost
,
POS_FACEUP
,
REASON_COST
)
end
...
...
script/c101102085.lua
View file @
039ecb95
...
...
@@ -72,7 +72,7 @@ function c101102085.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
+
REASON_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
cost
=
Duel
.
SelectMatchingCard
(
tp
,
c101102085
.
spcostfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
,
e
:
GetHandler
())
local
cost
=
Duel
.
SelectMatchingCard
(
tp
,
c101102085
.
spcostfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
,
e
:
GetHandler
())
:
GetFirst
()
e
:
SetLabel
(
cost
:
GetType
())
Duel
.
Remove
(
cost
,
POS_FACEUP
,
REASON_COST
)
end
...
...
script/c101102086.lua
View file @
039ecb95
...
...
@@ -58,7 +58,8 @@ function c101102086.sp2tgfilter(c,e,tp)
and
c
:
IsSetCard
(
0x258
)
and
c
:
IsLevel
(
8
)
end
function
c101102086
.
sp2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101102086
.
sp2tgfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c101102086
.
sp2tgfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
function
c101102086
.
sp2op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101102092.lua
View file @
039ecb95
...
...
@@ -43,7 +43,7 @@ function c101102092.thfilter(c,e,tp)
end
function
c101102092
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
Duel
.
GetMZoneCount
(
tp
)
>
0
then
return
end
if
Duel
.
GetMZoneCount
(
tp
)
<=
0
then
return
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101102092
.
thfilter
,
tp
,
LOCATION_HAND
+
LOCATION_REMOVED
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101102092
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
script/c101102096.lua
View file @
039ecb95
...
...
@@ -29,7 +29,7 @@ function c101102096.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
c101102096
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_REMOVED
,
0
,
nil
,
Duel
.
GetMZoneCount
(
tp
)
>
0
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101102096
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
:
GetFirst
()
local
opt
=
0
if
not
tc
:
IsAbleToHand
()
then
opt
=
0
...
...
script/c101103041.lua
View file @
039ecb95
...
...
@@ -59,13 +59,14 @@ function c101103041.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
--破壊された
function
c101103041
.
desfilter
(
c
)
function
c101103041
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_FUSION
)
end
function
c101103041
.
descon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c101103041
.
desfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
and
ep
==
1
-
tp
and
re
:
GetHandler
():
IsOnField
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
--破壊された
function
c101103041
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
ep
==
1
-
tp
and
re
:
GetHandler
():
IsOnField
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c101103041
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
function
c101103041
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
re
:
GetHandler
():
IsDestructable
()
end
...
...
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