Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
18263cf5
Commit
18263cf5
authored
Sep 22, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua and cdb fix
parent
1d7106b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c33400200.lua
expansions/script/c33400200.lua
+11
-5
No files found.
expansions/222DIY.cdb
View file @
18263cf5
No preview for this file type
expansions/script/c33400200.lua
View file @
18263cf5
...
...
@@ -23,7 +23,7 @@ function c33400200.initial_effect(c)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
+
TIMING_BATTLE_START
+
TIMING_BATTLE_END
)
e3
:
SetCountLimit
(
1
)
e3
:
SetTarget
(
c33400200
.
target2
)
e3
:
SetCondition
(
c33400200
.
condition
)
e3
:
SetCondition
(
c33400200
.
condition
2
)
e3
:
SetOperation
(
c33400200
.
operation2
)
c
:
RegisterEffect
(
e3
)
--future record
...
...
@@ -35,7 +35,7 @@ function c33400200.initial_effect(c)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
+
TIMING_BATTLE_START
+
TIMING_BATTLE_END
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c33400200
.
condition
)
e4
:
SetCondition
(
c33400200
.
condition
3
)
e4
:
SetOperation
(
c33400200
.
operation3
)
c
:
RegisterEffect
(
e4
)
end
...
...
@@ -44,7 +44,7 @@ function c33400200.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c33400200
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
33400200
,
0
),
aux
.
Stringid
(
33400200
,
1
))
if
op
==
0
then
if
op
==
0
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_SZONE
+
LOCATION_MZONE
):
Filter
(
Card
.
IsFacedown
,
nil
)
local
g1
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
g1
:
Merge
(
g
)
...
...
@@ -64,7 +64,7 @@ end
function
c33400200
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
end
function
c33400200
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33400200
.
condition
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tn
=
Duel
.
GetTurnPlayer
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
tn
~=
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
or
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
))
...
...
@@ -76,6 +76,12 @@ function c33400200.operation2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
SortDecktop
(
tp
,
tp
,
cm
)
end
function
c33400200
.
condition3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tn
=
Duel
.
GetTurnPlayer
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
tn
~=
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
or
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
))
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
(),
0x7342
)
end
function
c33400200
.
operation3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
getmetatable
(
e
:
GetHandler
()).
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
...
...
@@ -123,7 +129,7 @@ function c33400200.operation3(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTarget
(
c33400200
.
tgfilter
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c33400200
.
tgfilter
(
e
,
c
)
...
...
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