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
9761dbce
Commit
9761dbce
authored
Mar 11, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2ec37a14
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
10 deletions
+18
-10
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100414012.lua
script/c100414012.lua
+15
-8
script/c100414021.lua
script/c100414021.lua
+1
-1
script/c100414022.lua
script/c100414022.lua
+1
-1
script/c100414028.lua
script/c100414028.lua
+1
-0
No files found.
expansions/pre-release.cdb
View file @
9761dbce
No preview for this file type
script/c100414012.lua
View file @
9761dbce
...
@@ -17,27 +17,34 @@ end
...
@@ -17,27 +17,34 @@ end
function
c100414012
.
costfilter
(
c
,
tp
)
function
c100414012
.
costfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x23f
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsSetCard
(
0x23f
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
end
function
c100414012
.
fselect
(
g
,
tp
,
ec
)
function
c100414012
.
fselect
(
g
,
tp
,
e
x
c
)
local
dg
=
g
:
Clone
()
local
dg
=
g
:
Clone
()
dg
:
AddCard
(
ec
)
if
exc
then
dg
:
AddCard
(
exc
)
end
if
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
:
GetCount
()
+
1
,
dg
)
then
if
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
:
GetCount
()
+
1
,
dg
)
then
Duel
.
SetSelectedCard
(
g
)
Duel
.
SetSelectedCard
(
g
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
else
return
false
end
end
end
function
c100414012
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100414012
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
,
0
)
local
exc
=
nil
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
exc
=
e
:
GetHandler
()
end
local
g
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c100414012
.
costfilter
,
nil
,
tp
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c100414012
.
costfilter
,
nil
,
tp
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
c100414012
.
fselect
,
1
,
g
:
GetCount
(),
tp
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
g
:
CheckSubGroup
(
c100414012
.
fselect
,
1
,
g
:
GetCount
(),
tp
,
e
xc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
rg
=
g
:
SelectSubGroup
(
tp
,
c100414012
.
fselect
,
false
,
1
,
g
:
GetCount
(),
tp
,
e
:
GetHandler
()
)
local
rg
=
g
:
SelectSubGroup
(
tp
,
c100414012
.
fselect
,
false
,
1
,
g
:
GetCount
(),
tp
,
e
xc
)
e
:
SetLabel
(
Duel
.
Release
(
rg
,
REASON_COST
))
e
:
SetLabel
(
100
,
Duel
.
Release
(
rg
,
REASON_COST
))
end
end
function
c100414012
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c100414012
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
exc
=
nil
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
exc
=
e
:
GetHandler
()
end
local
check
,
ct
=
e
:
GetLabel
()
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
exc
)
end
local
ct
=
e
:
GetLabel
()
if
check
~=
100
then
ct
=
0
end
e
:
SetLabel
(
0
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
ct
+
1
,
ct
+
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
ct
+
1
,
ct
+
1
,
e
xc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c100414012
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100414012
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c100414021.lua
View file @
9761dbce
...
@@ -31,7 +31,7 @@ function c100414021.initial_effect(c)
...
@@ -31,7 +31,7 @@ function c100414021.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c100414021
.
cfilter
(
c
)
function
c100414021
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
or
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
(
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
)
or
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
end
end
function
c100414021
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100414021
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100414021
.
cfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
eg
:
IsExists
(
c100414021
.
cfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
...
...
script/c100414022.lua
View file @
9761dbce
...
@@ -60,7 +60,7 @@ function c100414022.rlop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,7 +60,7 @@ function c100414022.rlop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c100414022
.
atkfilter
(
c
)
function
c100414022
.
atkfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
or
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
(
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
)
or
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
end
end
function
c100414022
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100414022
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100414022
.
atkfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
eg
:
IsExists
(
c100414022
.
atkfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
...
...
script/c100414028.lua
View file @
9761dbce
...
@@ -11,6 +11,7 @@ function c100414028.initial_effect(c)
...
@@ -11,6 +11,7 @@ function c100414028.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c100414028
.
tglimit
)
e2
:
SetTarget
(
c100414028
.
tglimit
)
...
...
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