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
28b59c3b
Commit
28b59c3b
authored
Feb 08, 2023
by
songtongtong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update lua
parent
15d4a4bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
expansions/script/c10200110.lua
expansions/script/c10200110.lua
+4
-1
expansions/script/c12008010.lua
expansions/script/c12008010.lua
+1
-1
expansions/script/c12008023.lua
expansions/script/c12008023.lua
+1
-1
expansions/script/c75646701.lua
expansions/script/c75646701.lua
+1
-0
No files found.
expansions/script/c10200110.lua
View file @
28b59c3b
...
@@ -59,7 +59,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e2
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
HALF_DAMAGE
)
e2
:
SetValue
(
cm
.
damval
)
e2
:
SetReset
(
RESET_PHASE
)
e2
:
SetReset
(
RESET_PHASE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -71,6 +71,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,6 +71,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetOperation
(
cm
.
lpop
)
e3
:
SetOperation
(
cm
.
lpop
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
function
cm
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
return
val
/
2
end
function
cm
.
lpcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
lpcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLP
(
tp
)
>
5
return
Duel
.
GetLP
(
tp
)
>
5
end
end
...
...
expansions/script/c12008010.lua
View file @
28b59c3b
...
@@ -74,7 +74,7 @@ function c12008010.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,7 +74,7 @@ function c12008010.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c12008010
.
spfilter
(
c
,
e
,
tp
)
function
c12008010
.
spfilter
(
c
,
e
,
tp
)
if
not
c
:
GetReasonEffect
()
then
return
false
end
if
not
c
:
GetReasonEffect
()
then
return
false
end
return
c
:
IsFaceup
()
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonEffect
():
GetHandler
():
IsSetCard
(
0x1fb3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceup
()
and
c
:
GetReasonEffect
(
)
and
c
:
GetReasonEffect
():
GetHandler
():
IsSetCard
(
0x1fb3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c12008010
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12008010
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingMatchingCard
(
c12008010
.
spfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
e
:
GetLabelObject
()
and
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingMatchingCard
(
c12008010
.
spfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
e
:
GetLabelObject
()
and
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
end
...
...
expansions/script/c12008023.lua
View file @
28b59c3b
...
@@ -50,7 +50,7 @@ function c12008023.spop(e,tp,eg,ep,ev,re,r,rp,mg)
...
@@ -50,7 +50,7 @@ function c12008023.spop(e,tp,eg,ep,ev,re,r,rp,mg)
Duel
.
SendtoDeck
(
td
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
td
,
nil
,
2
,
REASON_EFFECT
)
local
tt
=
Duel
.
GetOperatedGroup
():
GetCount
()
local
tt
=
Duel
.
GetOperatedGroup
():
GetCount
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12008023
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
tt
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12008023
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
tt
+
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
expansions/script/c75646701.lua
View file @
28b59c3b
--翁德兰 天穹之冕
--翁德兰 天穹之冕
function
c75646701
.
initial_effect
(
c
)
function
c75646701
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
75646700
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
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