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
18e60086
Commit
18e60086
authored
Oct 29, 2023
by
REIKAI
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
4ca77007
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
expansions/script/c16400081.lua
expansions/script/c16400081.lua
+1
-1
expansions/script/c16400097.lua
expansions/script/c16400097.lua
+1
-2
expansions/script/c16400098.lua
expansions/script/c16400098.lua
+1
-1
expansions/script/c16400099.lua
expansions/script/c16400099.lua
+8
-4
No files found.
expansions/script/c16400081.lua
View file @
18e60086
...
...
@@ -15,7 +15,7 @@ function c16400081.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
16400
2
81
)
e2
:
SetCountLimit
(
1
,
16400
1
81
)
e2
:
SetCondition
(
c16400081
.
spcon
)
e2
:
SetTarget
(
c16400081
.
sptg
)
e2
:
SetOperation
(
c16400081
.
spop
)
...
...
expansions/script/c16400097.lua
View file @
18e60086
...
...
@@ -13,7 +13,6 @@ function c16400097.initial_effect(c)
--todeck
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TODECK
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
...
...
@@ -50,7 +49,7 @@ function c16400097.filter(c)
return
c
:
IsSetCard
(
0xce2
)
and
c
:
IsAbleToDeck
()
end
function
c16400097
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c16400097
.
filter
(
chkc
)
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c16400097
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c16400097
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
4
,
nil
)
...
...
expansions/script/c16400098.lua
View file @
18e60086
--向导兵器-兰斯洛特
function
c16400098
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0xce
1
),
2
,
4
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0xce
2
),
2
,
4
)
c
:
EnableReviveLimit
()
--to grave
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c16400099.lua
View file @
18e60086
...
...
@@ -3,7 +3,8 @@ function c16400099.initial_effect(c)
--copy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
16400099
,
1
))
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCountLimit
(
1
,
16400099
)
e1
:
SetCost
(
c16400099
.
cpcost
)
e1
:
SetTarget
(
c16400099
.
cptg
)
...
...
@@ -13,6 +14,7 @@ function c16400099.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
,
16400199
)
...
...
@@ -30,7 +32,8 @@ function c16400099.cpfilter(c,exc,e,tp,eg,ep,ev,re,r,rp)
end
function
c16400099
.
cpcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c16400099
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
chk
==
0
then
return
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c16400099
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16400099
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
g
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
false
)
...
...
@@ -76,8 +79,9 @@ function c16400099.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
ct
)
end
function
c16400099
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
if
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
==
ct
then
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
==
ct
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
...
...
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