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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
7595df73
Commit
7595df73
authored
Apr 23, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sign out
parent
704359ba
Pipeline
#2990
passed with stages
in 30 minutes and 56 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
expansions/script/c16150002.lua
expansions/script/c16150002.lua
+10
-1
expansions/script/c16150003.lua
expansions/script/c16150003.lua
+2
-9
expansions/script/c16150007.lua
expansions/script/c16150007.lua
+2
-2
No files found.
expansions/script/c16150002.lua
View file @
7595df73
...
...
@@ -45,7 +45,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
eqg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
eq
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
c
)
local
eqg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
c
)
if
eqg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
eqg
)
local
sc
=
eqg
:
GetFirst
()
...
...
@@ -58,6 +58,15 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetLabelObject
(
c
)
e1
:
SetValue
(
cm
.
eqlimit
)
sc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
1000
)
sc
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
sc
:
RegisterEffect
(
e3
)
if
not
sc
:
IsType
(
TYPE_TRAPMONSTER
)
and
sc
:
IsRace
(
RACE_BEAST
)
then
local
cid
=
c
:
CopyEffect
(
sc
:
GetCode
(),
RESET_EVENT
+
RESETS_STANDARD
)
end
...
...
expansions/script/c16150003.lua
View file @
7595df73
...
...
@@ -32,7 +32,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
nil
,
e
,
tp
)
end
e
:
SetLabel
(
100
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
1
,
nil
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
1
,
nil
,
e
,
tp
)
sg
:
KeepAlive
()
Duel
.
Release
(
sg
,
REASON_COST
)
e
:
SetLabelObject
(
sg
)
...
...
@@ -44,14 +44,7 @@ function cm.spfilter1(c,mc,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
and
not
c
:
IsCode
(
mc
:
GetCode
())
and
(
c
:
IsRace
(
RACE_INSECT
)
or
c
:
IsType
(
TYPE_FLIP
))
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
num
=
e
:
GetLabel
()
if
num
~=
100
then
return
false
end
if
num
==
10
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
:
GetLabelObject
():
GetFirst
(),
e
,
tp
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
...
...
expansions/script/c16150007.lua
View file @
7595df73
...
...
@@ -60,7 +60,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
tc
=
g
:
GetFirst
()
if
tc
:
IsL
ink
Above
(
8
)
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
if
tc
:
IsL
evel
Above
(
8
)
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
changefilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
3
))
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
changefilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
e
:
GetHandler
()):
GetFirst
()
...
...
@@ -80,7 +80,7 @@ function cm.aclimit(e,re,tp)
local
c
=
re
:
GetHandler
()
return
not
c
:
IsLocation
(
LOCATION_SZONE
)
or
c
:
GetFlagEffect
(
m
+
1
)
>
0
end
function
cm
.
aclimcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
ac
t
limcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
>
0
end
function
cm
.
aclimset
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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