Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
1e75f7a9
Commit
1e75f7a9
authored
Aug 01, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add card BODE-JP076
parent
68b30b56
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
99 additions
and
0 deletions
+99
-0
c4008212.lua
c4008212.lua
+75
-0
c48032131.lua
c48032131.lua
+1
-0
c6186304.lua
c6186304.lua
+1
-0
c75041269.lua
c75041269.lua
+1
-0
utility.lua
utility.lua
+21
-0
No files found.
c4008212.lua
0 → 100644
View file @
1e75f7a9
--ブレイク・ザ・デステニー
function
c4008212
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
4008212
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetHintTiming
(
0
,
TIMING_STANDBY_PHASE
)
e1
:
SetCountLimit
(
1
,
4008212
)
e1
:
SetTarget
(
c4008212
.
destg
)
e1
:
SetOperation
(
c4008212
.
desop
)
c
:
RegisterEffect
(
e1
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
4008212
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
4008212
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c4008212
.
thtg
)
e2
:
SetOperation
(
c4008212
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c4008212
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
76263644
)
or
c
:
IsSetCard
(
0xc008
)
and
c
:
IsLevelAbove
(
8
))
end
function
c4008212
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c4008212
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c4008212
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c4008212
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c4008212
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SKIP_M1
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
if
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
c4008212
.
turncon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
2
)
else
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
1
)
end
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c4008212
.
turncon
(
e
)
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
end
function
c4008212
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
4008212
)
and
(
aux
.
IsCodeListed
(
c
,
76263644
)
or
aux
.
IsSetNameMonsterListed
(
c
,
0xc008
))
end
function
c4008212
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c4008212
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c4008212
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4008212
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
c48032131.lua
View file @
1e75f7a9
--D-タクティクス
--D-タクティクス
function
c48032131
.
initial_effect
(
c
)
function
c48032131
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
76263644
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
c6186304.lua
View file @
1e75f7a9
--D-フォース
--D-フォース
function
c6186304
.
initial_effect
(
c
)
function
c6186304
.
initial_effect
(
c
)
aux
.
AddSetNameMonsterList
(
c
,
0xc008
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_GRAVE_ACTION
)
...
...
c75041269.lua
View file @
1e75f7a9
--幽獄の時計塔
--幽獄の時計塔
function
c75041269
.
initial_effect
(
c
)
function
c75041269
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
76263644
)
c
:
EnableCounterPermit
(
0x1b
)
c
:
EnableCounterPermit
(
0x1b
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
utility.lua
View file @
1e75f7a9
...
@@ -2105,6 +2105,27 @@ end
...
@@ -2105,6 +2105,27 @@ end
function
Auxiliary
.
IsCodeListed
(
c
,
code
)
function
Auxiliary
.
IsCodeListed
(
c
,
code
)
return
c
.
card_code_list
and
c
.
card_code_list
[
code
]
return
c
.
card_code_list
and
c
.
card_code_list
[
code
]
end
end
function
Auxiliary
.
AddSetNameMonsterList
(
c
,
...
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
setcode_monster_list
==
nil
then
local
mt
=
getmetatable
(
c
)
mt
.
setcode_monster_list
=
{}
for
i
,
scode
in
ipairs
{
...
}
do
mt
.
setcode_monster_list
[
i
]
=
scode
end
else
for
i
,
scode
in
ipairs
{
...
}
do
c
.
setcode_monster_list
[
i
]
=
scode
end
end
end
function
Auxiliary
.
IsSetNameMonsterListed
(
c
,
setcode
)
if
not
c
.
setcode_monster_list
then
return
false
end
for
i
,
scode
in
ipairs
(
c
.
setcode_monster_list
)
do
if
setcode
&
0xfff
==
scode
&
0xfff
and
setcode
&
scode
==
setcode
then
return
true
end
end
return
false
end
function
Auxiliary
.
IsCounterAdded
(
c
,
counter
)
function
Auxiliary
.
IsCounterAdded
(
c
,
counter
)
if
not
c
.
counter_add_list
then
return
false
end
if
not
c
.
counter_add_list
then
return
false
end
for
i
,
ccounter
in
ipairs
(
c
.
counter_add_list
)
do
for
i
,
ccounter
in
ipairs
(
c
.
counter_add_list
)
do
...
...
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