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
5f676624
Commit
5f676624
authored
Oct 26, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ddb72420
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
10 deletions
+11
-10
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100259009.lua
script/c100259009.lua
+0
-1
script/c100337051.lua
script/c100337051.lua
+8
-4
script/c100423001.lua
script/c100423001.lua
+1
-2
script/c101011022.lua
script/c101011022.lua
+1
-1
script/c101011026.lua
script/c101011026.lua
+1
-1
script/c101011049.lua
script/c101011049.lua
+0
-1
No files found.
expansions/pre-release.cdb
View file @
5f676624
No preview for this file type
script/c100259009.lua
View file @
5f676624
...
...
@@ -17,7 +17,6 @@ function c100259009.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_BATTLE_CONFIRM
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c100259009
.
damcon
)
e1
:
SetTarget
(
c100259009
.
damtg
)
e1
:
SetOperation
(
c100259009
.
damop
)
...
...
script/c100337051.lua
View file @
5f676624
...
...
@@ -82,21 +82,25 @@ function c100337051.disop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
end
end
function
c100337051
.
thfilter
(
c
)
function
c100337051
.
thfilter
(
c
,
tp
)
local
b
=
c
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsAbleToHand
()
and
(
not
b
or
(
b
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
))
end
function
c100337051
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsAbleToHand
()
end
function
c100337051
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100337051
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100337051
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
1
,
tp
,
1
)
end
function
c100337051
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c100337051
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c100337051
.
thfilter
2
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
then
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
+
LOCATION_EXTRA
)
then
Duel
.
ShuffleHand
(
tp
)
Duel
.
BreakEffect
()
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
,
nil
)
...
...
script/c100423001.lua
View file @
5f676624
...
...
@@ -45,7 +45,7 @@ function c100423001.drop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
~=
0
then
local
dc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
if
dc
:
Is
Type
(
TYPE_SPELL
+
TYPE_TRAP
)
and
dc
:
Is
SSetable
()
if
dc
:
IsSSetable
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100423001
,
0
))
then
Duel
.
SSet
(
tp
,
dc
)
if
dc
:
IsType
(
TYPE_QUICKPLAY
)
then
...
...
@@ -64,7 +64,6 @@ function c100423001.drop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
dc
:
RegisterEffect
(
e1
)
end
Duel
.
ConfirmCards
(
1
-
tp
,
dc
)
end
end
end
...
...
script/c101011022.lua
View file @
5f676624
...
...
@@ -2,7 +2,7 @@
--Scripted by nekrozar
function
c101011022
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
101011022
)
c
:
SetUniqueOnField
(
1
,
0
,
101011022
,
LOCATION_MZONE
)
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101011022
,
0
))
...
...
script/c101011026.lua
View file @
5f676624
...
...
@@ -75,7 +75,7 @@ function c101011026.spop2(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetValue
(
LOCATION_REMOVED
)
tc
:
RegisterEffect
(
e1
,
true
)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsAbleToRemove
()
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c101011049.lua
View file @
5f676624
...
...
@@ -25,7 +25,6 @@ function c101011049.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_TODECK
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_BATTLE_START
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c101011049
.
tdcon
)
e3
:
SetTarget
(
c101011049
.
tdtg
)
e3
:
SetOperation
(
c101011049
.
tdop
)
...
...
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