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
1d3220cd
Commit
1d3220cd
authored
Aug 19, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
e65b4b3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
expansions/script/c30553215.lua
expansions/script/c30553215.lua
+8
-3
expansions/script/c72411180.lua
expansions/script/c72411180.lua
+4
-4
expansions/script/c72411610.lua
expansions/script/c72411610.lua
+4
-3
No files found.
expansions/script/c30553215.lua
View file @
1d3220cd
...
...
@@ -93,7 +93,7 @@ function cm.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
cm
.
sfilter
(
c
,
tp
)
...
...
@@ -102,8 +102,13 @@ end
function
cm
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
not
tg
or
tg
:
FilterCount
(
Card
.
IsRelateToEffect
,
nil
,
e
)
~=
2
then
return
end
if
not
tg
or
tg
:
FilterCount
(
Card
.
IsRelateToEffect
,
nil
,
e
)
==
0
then
return
end
Duel
.
SendtoDeck
(
tg
,
nil
,
0
,
REASON_EFFECT
)
local
g
=
Duel
.
GetOperatedGroup
()
if
g
:
IsExists
(
cm
.
sfilter
,
1
,
nil
,
tp
)
then
Duel
.
SortDecktop
(
tp
,
tp
,
g
:
FilterCount
(
cm
.
sfilter
,
nil
,
tp
))
end
if
g
:
IsExists
(
cm
.
sfilter
,
1
,
nil
,
tp
)
then
if
g
:
FilterCount
(
cm
.
sfilter
,
nil
,
tp
)
==
1
then
return
end
Duel
.
SortDecktop
(
tp
,
tp
,
g
:
FilterCount
(
cm
.
sfilter
,
nil
,
tp
))
end
end
\ No newline at end of file
expansions/script/c72411180.lua
View file @
1d3220cd
...
...
@@ -4,16 +4,16 @@ function c72411180.initial_effect(c)
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c72411180
.
lcheck
)
c
:
EnableReviveLimit
()
--
-- as spellcaster
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e0
:
SetRange
(
0xff
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e0
)
--de
f
--de
s
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
expansions/script/c72411610.lua
View file @
1d3220cd
--雷格尼斯之主·古蕾娅
function
c72411610
.
initial_effect
(
c
)
--
--
as spell
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e0
:
SetRange
(
0xff
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e0
)
--des
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_TOGRAVE
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
...
...
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