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
38551737
Commit
38551737
authored
Jul 24, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
ba9f34fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
expansions/script/c16362016.lua
expansions/script/c16362016.lua
+15
-7
No files found.
expansions/script/c16362016.lua
View file @
38551737
...
...
@@ -46,6 +46,7 @@ function c16362016.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCondition
(
c16362016
.
con2
)
e5
:
SetCost
(
c16362016
.
cost2
)
e5
:
SetOperation
(
c16362016
.
op2
)
c
:
RegisterEffect
(
e5
)
...
...
@@ -70,6 +71,7 @@ function c16362016.initial_effect(c)
e7
:
SetCode
(
EVENT_FREE_CHAIN
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e7
:
SetCondition
(
c16362016
.
con6
)
e7
:
SetCost
(
c16362016
.
cost6
)
e7
:
SetTarget
(
c16362016
.
tg6
)
e7
:
SetOperation
(
c16362016
.
op6
)
...
...
@@ -105,9 +107,12 @@ function c16362016.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c16362016
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetCounter
(
0xdc0
)
>=
2
end
function
c16362016
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0xdc0
,
2
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0xdc0
,
2
,
REASON_COST
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0xdc0
,
2
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0xdc0
,
2
,
REASON_COST
)
end
function
c16362016
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -130,11 +135,11 @@ function c16362016.con4(e,tp,eg,ep,ev,re,r,rp)
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
rp
==
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsContains
(
e
:
GetHandler
())
return
g
and
g
:
IsContains
(
e
:
GetHandler
())
and
e
:
GetHandler
():
GetCounter
(
0xdc0
)
>=
4
end
function
c16362016
.
cost4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0xdc0
,
4
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0xdc0
,
4
,
REASON_COST
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0xdc0
,
4
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0xdc0
,
4
,
REASON_COST
)
end
function
c16362016
.
tg4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
@@ -148,9 +153,12 @@ function c16362016.op4(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
function
c16362016
.
con6
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetCounter
(
0xdc0
)
==
6
end
function
c16362016
.
cost6
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0xdc0
,
6
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0xdc0
,
6
,
REASON_COST
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0xdc0
,
6
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0xdc0
,
6
,
REASON_COST
)
end
function
c16362016
.
tg6
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
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