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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
15d4a4bb
Commit
15d4a4bb
authored
Feb 07, 2023
by
REIKAI
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update lua
parent
7dedce69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
23 deletions
+26
-23
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c10174059.lua
expansions/script/c10174059.lua
+26
-23
No files found.
expansions/222DIY.cdb
View file @
15d4a4bb
No preview for this file type
expansions/script/c10174059.lua
View file @
15d4a4bb
...
...
@@ -13,29 +13,32 @@ function cm.desfilter(c)
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
(
c
:
IsFaceup
()
or
not
c
:
IsOnField
())
end
function
cm
.
desop
(
e
,
tp
)
if
rsop
.
SelectDestroy
(
tp
,
cm
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
<=
0
then
return
end
local
c
=
rscf
.
GetFaceUpSelf
(
e
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
op
=
rsop
.
SelectOption
(
tp
,
true
,{
m
,
2
},
#
g
>
0
,{
m
,
3
},
c
and
true
or
false
,{
m
,
4
})
if
op
==
1
then
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
)
elseif
op
==
2
then
g
:
SelectDestroy
(
tp
,
aux
.
TRUE
,
1
,
1
,
nil
,{})
elseif
op
==
3
then
if
c
:
GetFlagEffect
(
m
)
<=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK_MONSTER
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
rsreset
.
est
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
m
,
rsreset
.
est
,
0
,
1
)
e
:
SetLabelObject
(
e1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
sg
:
GetCount
()
>
0
and
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
>
0
then
local
c
=
rscf
.
GetFaceUpSelf
(
e
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
op
=
rsop
.
SelectOption
(
tp
,
true
,{
m
,
2
},
#
g
>
0
,{
m
,
3
},
c
and
true
or
false
,{
m
,
4
})
if
op
==
1
then
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
)
elseif
op
==
2
then
g
:
SelectDestroy
(
tp
,
aux
.
TRUE
,
1
,
1
,
nil
,{})
elseif
op
==
3
then
if
c
:
GetFlagEffect
(
m
)
<=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK_MONSTER
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
rsreset
.
est
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
m
,
rsreset
.
est
,
0
,
1
)
e
:
SetLabelObject
(
e1
)
end
local
ce
=
e
:
GetLabelObject
()
local
ct
=
ce
:
GetValue
()
+
1
ce
:
SetValue
(
ct
)
c
:
SetHint
(
CHINT_NUMBER
,
ct
)
end
local
ce
=
e
:
GetLabelObject
()
local
ct
=
ce
:
GetValue
()
+
1
ce
:
SetValue
(
ct
)
c
:
SetHint
(
CHINT_NUMBER
,
ct
)
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