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
2c182816
Commit
2c182816
authored
Sep 03, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
321a0c74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
expansions/script/c30900675.lua
expansions/script/c30900675.lua
+0
-1
expansions/script/c30900676.lua
expansions/script/c30900676.lua
+5
-4
No files found.
expansions/script/c30900675.lua
View file @
2c182816
...
@@ -10,7 +10,6 @@ local e5=Effect.CreateEffect(c)
...
@@ -10,7 +10,6 @@ local e5=Effect.CreateEffect(c)
e5
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e5
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e5
:
SetCost
(
s
.
cost
)
e5
:
SetCost
(
s
.
cost
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCondition
(
s
.
thcon
)
e5
:
SetTarget
(
s
.
thtg
)
e5
:
SetTarget
(
s
.
thtg
)
e5
:
SetOperation
(
s
.
thop
)
e5
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
...
...
expansions/script/c30900676.lua
View file @
2c182816
...
@@ -7,28 +7,29 @@ local e5=Effect.CreateEffect(c)
...
@@ -7,28 +7,29 @@ local e5=Effect.CreateEffect(c)
e5
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e5
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e5
:
SetCode
(
EVENT_FREE_CHAIN
)
e5
:
SetCode
(
EVENT_FREE_CHAIN
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCondition
(
s
.
thcon
)
e5
:
SetTarget
(
s
.
thtg
)
e5
:
SetTarget
(
s
.
thtg
)
e5
:
SetOperation
(
s
.
thop
)
e5
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
Duel
.
SetChainLimit
(
aux
.
FALSE
)
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
end
end
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
2
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g
1
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
g1
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
g1
)
local
g
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
local
g
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
and
tc
:
IsRelateToEffect
(
e
)
then
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
end
end
end
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