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
7be98033
Commit
7be98033
authored
Sep 16, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
498381d4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
400 additions
and
399 deletions
+400
-399
expansions/script/c47510239.lua
expansions/script/c47510239.lua
+82
-85
expansions/script/c47530026.lua
expansions/script/c47530026.lua
+160
-158
expansions/script/c47530027.lua
expansions/script/c47530027.lua
+158
-156
No files found.
expansions/script/c47510239.lua
View file @
7be98033
...
...
@@ -78,20 +78,17 @@ function c47510239.sumfilter(c)
end
function
c47510239
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsSummonable
(
true
,
nil
,
1
)
or
c
:
IsMSetable
(
true
,
nil
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
c
,
1
,
0
,
0
)
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
if
chk
==
0
then
return
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
and
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
c
,
1
,
tp
,
LOCATION_PZONE
)
end
function
c47510239
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pos
=
0
if
c
:
IsSummonable
(
true
,
nil
,
1
)
then
pos
=
pos
+
POS_FACEUP_ATTACK
end
if
c
:
IsMSetable
(
true
,
nil
,
1
)
then
pos
=
pos
+
POS_FACEDOWN_DEFENSE
end
if
pos
==
0
then
return
end
if
Duel
.
SelectPosition
(
tp
,
c
,
pos
)
==
POS_FACEUP_ATTACK
then
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
or
not
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
then
return
end
local
SummonCheck
=
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
if
SummonCheck
then
Duel
.
Summon
(
tp
,
c
,
true
,
nil
,
1
)
else
Duel
.
MSet
(
tp
,
c
,
true
,
nil
,
1
)
end
end
function
c47510239
.
chfilter
(
c
)
...
...
expansions/script/c47530026.lua
View file @
7be98033
...
...
@@ -128,12 +128,14 @@ function c47530026.setfilter(c)
end
function
c47530026
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsSummonable
(
true
,
nil
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c47530026
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
if
chk
==
0
then
return
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
and
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
and
Duel
.
IsExistingMatchingCard
(
c47530026
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c47530026
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
or
not
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
then
return
end
if
Duel
.
Summon
(
tp
,
c
,
true
,
nil
,
1
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47530026
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
false
)
...
...
expansions/script/c47530027.lua
View file @
7be98033
...
...
@@ -129,12 +129,14 @@ function c47530027.setfilter(c)
end
function
c47530027
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsSummonable
(
true
,
nil
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c47530027
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
if
chk
==
0
then
return
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
and
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
and
Duel
.
IsExistingMatchingCard
(
c47530027
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c47530027
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
or
not
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
then
return
end
if
Duel
.
Summon
(
tp
,
c
,
true
,
nil
,
1
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47530027
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
false
)
...
...
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