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
3d779f12
Commit
3d779f12
authored
Feb 20, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
2597fea6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c23000400.lua
expansions/script/c23000400.lua
+9
-2
expansions/script/c23000560.lua
expansions/script/c23000560.lua
+2
-2
expansions/script/c33200623.lua
expansions/script/c33200623.lua
+1
-0
No files found.
expansions/222DIY.cdb
View file @
3d779f12
No preview for this file type
expansions/script/c23000400.lua
View file @
3d779f12
...
...
@@ -252,6 +252,13 @@ end
function
bm
.
eqfilter_base
(
c
,
tp
)
return
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
end
function
bm
.
eqcheck_e
(
e
,
tp
)
if
e
:
GetHandler
():
IsLocation
(
sz
)
then
return
true
else
return
Duel
.
GetLocationCount
(
tp
,
sz
)
>
0
end
end
function
bm
.
e
.
eqtg
(
loc
,
filter_func
,
target_type
,
oppos
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -259,7 +266,7 @@ function bm.e.eqtg(loc,filter_func,target_type,oppos)
if
oppos
then
g
=
Duel
.
GetMatchingGroup
(
filter_func
,
tp
,
loc
,
loc
,
nil
)
end
if
target_type
then
g
=
g
:
Filter
(
Card
.
IsCanBeEffectTarget
,
nil
,
e
)
end
if
loc
~=
mz
then
g
=
g
:
Filter
(
bm
.
eqfilter_base
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
sz
)
>
0
and
#
g
>
0
end
if
chk
==
0
then
return
bm
.
eqcheck_e
(
e
,
tp
)
and
#
g
>
0
end
if
target_type
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
@@ -272,7 +279,7 @@ function bm.e.eqtg(loc,filter_func,target_type,oppos)
end
function
bm
.
e
.
eqop
(
loc
,
filter_func
,
target_type
,
up_atk
,
oppos
,
up_def
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
sz
)
<=
0
then
return
end
if
not
bm
.
eqcheck_e
(
e
,
tp
)
then
return
end
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
(
c
:
IsLocation
(
mz
)
or
bm
.
eqfilter_base
(
c
,
tp
))
then
return
end
...
...
expansions/script/c23000560.lua
View file @
3d779f12
...
...
@@ -21,8 +21,8 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
ga
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetTarget
(
bm
.
e
.
eqtg
(
mz
,
cm
.
f
,
tru
e
))
e2
:
SetOperation
(
bm
.
e
.
eqop
(
mz
,
cm
.
f
,
tru
e
))
e2
:
SetTarget
(
bm
.
e
.
eqtg
(
mz
,
cm
.
f
,
fals
e
))
e2
:
SetOperation
(
bm
.
e
.
eqop
(
mz
,
cm
.
f
,
fals
e
))
c
:
RegisterEffect
(
e2
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c33200623.lua
View file @
3d779f12
...
...
@@ -151,5 +151,6 @@ function c33200623.txtop(e,tp,eg,ep,ev,re,r,rp)
if
cod
>=
4
then
c
:
RegisterFlagEffect
(
33200621
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
33200623
,
3
))
end
if
cod
>=
6
then
c
:
RegisterFlagEffect
(
33200622
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
33200623
,
4
))
end
if
cod
>=
8
then
c
:
RegisterFlagEffect
(
33200623
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
33200623
,
5
))
end
e
:
SetLabel
(
cod
)
end
end
\ No newline at end of file
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