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
b9da58d4
Commit
b9da58d4
authored
Feb 25, 2023
by
REIKAI
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 2pick function
parent
0fd70d33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
35 deletions
+37
-35
expansions/script/c13959998.lua
expansions/script/c13959998.lua
+37
-35
No files found.
expansions/script/c13959998.lua
View file @
b9da58d4
...
...
@@ -399,49 +399,51 @@ function this.custompick(mainc,extrac,packc)
end
function
this
.
setOverride
()
Card
.
IsSetCard
=
aux
.
TRUE
Card
.
IsPreviousSetCard
=
aux
.
TRUE
Card
.
IsFusionSetCard
=
aux
.
TRUE
Card
.
IsLinkSetCard
=
aux
.
TRUE
Card
.
IsOriginalSetCard
=
aux
.
TRUE
Card
.
IsFusionSetCard
=
aux
.
TRUE
aux
.
IsMaterialListSetCard
=
aux
.
TRUE
Card
.
IsSetCard
=
aux
.
TRUE
Card
.
IsPreviousSetCard
=
aux
.
TRUE
Card
.
IsFusionSetCard
=
aux
.
TRUE
Card
.
IsLinkSetCard
=
aux
.
TRUE
Card
.
IsOriginalSetCard
=
aux
.
TRUE
Card
.
IsFusionSetCard
=
aux
.
TRUE
aux
.
IsMaterialListSetCard
=
aux
.
TRUE
rk
.
check
=
aux
.
TRUE
aux
.
IsCodeListed
=
aux
.
TRUE
end
function
this
.
GetChainInfo
(
ev
,
...
)
local
code_list
=
{
...
}
local
chaininfolist
=
{}
for
i
,
v
in
ipairs
(
code_list
)
do
if
v
==
CHAININFO_TRIGGERING_RACE
then
table.insert
(
chaininfolist
,
RACE_ALL
)
elseif
v
==
CHAININFO_TRIGGERING_ATTRIBUTE
then
table.insert
(
chaininfolist
,
0x7f
)
else
table.insert
(
chaininfolist
,
this
.
GetChainInfotmp
(
ev
,
v
))
end
end
return
table.unpack
(
chaininfolist
)
local
code_list
=
{
...
}
local
chaininfolist
=
{}
for
i
,
v
in
ipairs
(
code_list
)
do
if
v
==
CHAININFO_TRIGGERING_RACE
then
table.insert
(
chaininfolist
,
RACE_ALL
)
elseif
v
==
CHAININFO_TRIGGERING_ATTRIBUTE
then
table.insert
(
chaininfolist
,
0x7f
)
else
table.insert
(
chaininfolist
,
this
.
GetChainInfotmp
(
ev
,
v
))
end
end
return
table.unpack
(
chaininfolist
)
end
function
this
.
raceOverride
()
Card
.
IsRace
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
IsLinkRace
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
GetRace
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
RACE_ALL
end
return
nil
end
Card
.
GetLinkRace
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
RACE_ALL
end
return
nil
end
Card
.
GetOriginalRace
=
function
(
c
)
if
c
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
then
return
RACE_ALL
end
return
nil
end
Card
.
GetPreviousRaceOnField
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
RACE_ALL
end
return
nil
end
this
.
GetChainInfotmp
=
Duel
.
GetChainInfo
Duel
.
GetChainInfo
=
this
.
GetChainInfo
Card
.
IsRace
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
IsLinkRace
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
GetRace
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
RACE_ALL
end
return
nil
end
Card
.
GetLinkRace
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
RACE_ALL
end
return
nil
end
Card
.
GetOriginalRace
=
function
(
c
)
if
c
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
then
return
RACE_ALL
end
return
nil
end
Card
.
GetPreviousRaceOnField
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
RACE_ALL
end
return
nil
end
this
.
GetChainInfotmp
=
Duel
.
GetChainInfo
Duel
.
GetChainInfo
=
this
.
GetChainInfo
end
function
this
.
attrOverride
()
Card
.
IsAttribute
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
IsFusionAttribute
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
IsLinkAttribute
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
GetAttribute
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
0x7f
end
return
nil
end
Card
.
GetFusionAttribute
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
0x7f
end
return
nil
end
Card
.
GetLinkAttribute
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
0x7f
end
return
nil
end
Card
.
GetOriginalAttribute
=
function
(
c
)
if
c
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
then
return
0x7f
end
return
nil
end
Card
.
GetPreviousAttributeOnField
=
function
(
c
)
if
c
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
then
return
0x7f
end
return
nil
end
Card
.
IsAttribute
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
IsFusionAttribute
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
IsLinkAttribute
=
function
(
c
)
return
c
and
c
:
IsType
(
TYPE_MONSTER
)
end
Card
.
GetAttribute
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
0x7f
end
return
nil
end
Card
.
GetFusionAttribute
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
0x7f
end
return
nil
end
Card
.
GetLinkAttribute
=
function
(
c
)
if
c
and
c
:
IsType
(
TYPE_MONSTER
)
then
return
0x7f
end
return
nil
end
Card
.
GetOriginalAttribute
=
function
(
c
)
if
c
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
then
return
0x7f
end
return
nil
end
Card
.
GetPreviousAttributeOnField
=
function
(
c
)
if
c
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
then
return
0x7f
end
return
nil
end
end
function
this
.
ritualEnhance
(
c
)
...
...
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