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
Ai
ygopro-222DIY-cards
Commits
d51e7382
Commit
d51e7382
authored
Feb 15, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bbbb
parent
d286802a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
18 deletions
+7
-18
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c14000099.lua
expansions/script/c14000099.lua
+2
-7
expansions/script/c14000104.lua
expansions/script/c14000104.lua
+5
-11
No files found.
expansions/222DIY.cdb
View file @
d51e7382
No preview for this file type
expansions/script/c14000099.lua
View file @
d51e7382
...
@@ -44,14 +44,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,14 +44,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
else
else
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN
)
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN
)
end
end
elseif
tc
:
IsType
(
TYPE_TOKEN
)
then
end
return
if
not
tc
:
IsType
(
TYPE_TOKEN
)
and
(
tc
:
IsFaceup
()
or
not
tc
:
IsLocation
(
LOCATION_REMOVED
))
then
elseif
tc
:
IsType
(
TYPE_PENDULUM
)
then
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_RULE
)
elseif
tc
:
IsFaceup
()
or
not
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_RULE
)
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_RULE
)
else
return
end
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
...
...
expansions/script/c14000104.lua
View file @
d51e7382
...
@@ -64,7 +64,7 @@ function cm.poscon(e)
...
@@ -64,7 +64,7 @@ function cm.poscon(e)
return
e
:
GetHandler
():
IsAttackPos
()
return
e
:
GetHandler
():
IsAttackPos
()
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
GetSummonPlayer
()
==
1
-
tp
and
(
not
e
or
c
:
IsRelateToEffect
(
e
))
return
c
:
GetSummonPlayer
()
==
1
-
tp
and
(
not
e
or
c
:
IsRelateToEffect
(
e
))
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
nil
,
tp
)
end
...
@@ -75,9 +75,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,9 +75,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
eg
:
Filter
(
cm
.
filter
,
nil
,
e
,
tp
)
local
g
=
eg
:
Filter
(
cm
.
filter
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
)
>
0
and
tc
:
IsCanTurnSet
()
and
not
tc
:
IsType
(
TYPE_PENDULUM
)
then
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
)
>
0
and
tc
:
IsCanTurnSet
()
and
not
tc
:
IsType
(
TYPE_PENDULUM
+
TYPE_TOKEN
)
then
if
Duel
.
MoveToField
(
tc
,
tp
,
1
-
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
true
)
~=
0
and
not
tc
:
IsType
(
TYPE_TOKEN
)
then
if
Duel
.
MoveToField
(
tc
,
tp
,
1
-
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
true
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -85,17 +84,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,17 +84,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
elseif
tc
:
IsType
(
TYPE_TOKEN
)
then
local
c
=
e
:
GetHandler
()
else
else
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_RULE
)
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_RULE
)
end
end
elseif
tc
:
IsType
(
TYPE_TOKEN
)
then
end
local
c
=
e
:
GetHandler
()
if
not
tc
:
IsType
(
TYPE_TOKEN
)
and
(
tc
:
IsFaceup
()
or
not
tc
:
IsLocation
(
LOCATION_REMOVED
))
then
elseif
tc
:
IsFaceup
()
or
not
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_RULE
)
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_RULE
)
else
local
c
=
e
:
GetHandler
()
end
end
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
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