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
REIKAI
ygopro-222DIY-cards
Commits
c45ba33a
Commit
c45ba33a
authored
Nov 28, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c60152903.lua
parent
3f739560
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
expansions/script/c60152903.lua
expansions/script/c60152903.lua
+18
-18
No files found.
expansions/script/c60152903.lua
View file @
c45ba33a
...
@@ -44,13 +44,28 @@ function c60152903.initial_effect(c)
...
@@ -44,13 +44,28 @@ function c60152903.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_RELEASE
)
e3
:
SetCode
(
EVENT_RELEASE
)
e3
:
SetCountLimit
(
1
,
602903
)
e3
:
SetCountLimit
(
1
,
1
602903
)
e3
:
SetCondition
(
c60152903
.
con
)
e3
:
SetCondition
(
c60152903
.
con
)
e3
:
SetTarget
(
c60152903
.
e3tg
)
e3
:
SetTarget
(
c60152903
.
e3tg
)
e3
:
SetOperation
(
c60152903
.
e3op
)
e3
:
SetOperation
(
c60152903
.
e3op
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c60152903
.
check
(
c
)
return
c
end
function
c60152903
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c0
,
c1
=
Duel
.
GetBattleMonster
(
0
)
if
c60152903
.
check
(
c0
)
then
Duel
.
RegisterFlagEffect
(
0
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Debug
.
Message
(
Duel
.
GetFlagEffect
(
tp
,
60152903
))
end
if
c60152903
.
check
(
c1
)
then
Duel
.
RegisterFlagEffect
(
1
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Debug
.
Message
(
Duel
.
GetFlagEffect
(
tp
,
60152903
))
end
end
function
c60152903
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152903
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--local tp=e:GetHandlerPlayer()
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
==
0
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
==
0
end
end
function
c60152903
.
e1con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152903
.
e1con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -111,28 +126,13 @@ function c60152903.e1op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -111,28 +126,13 @@ function c60152903.e1op(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
function
c60152903
.
check
(
c
)
return
c
end
function
c60152903
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c0
,
c1
=
Duel
.
GetBattleMonster
(
0
)
if
c60152903
.
check
(
c0
)
then
Duel
.
RegisterFlagEffect
(
0
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
c60152903
.
check
(
c1
)
then
Duel
.
RegisterFlagEffect
(
1
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c60152903
.
e2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152903
.
e2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
p
=
PLAYER_ALL
local
p
=
PLAYER_ALL
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
tp
,
60152903
)
==
0
and
Duel
.
GetMatchingGroupCount
(
aux
.
NOT
(
Card
.
IsPublic
),
tp
,
0
,
LOCATION_HAND
,
nil
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
60152903
)
>
0
end
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
end
end
function
c60152903
.
e2opfilter
(
c
)
return
c
:
IsAbleToDeck
()
end
function
c60152903
.
e2op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152903
.
e2op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
p
==
PLAYER_ALL
then
if
p
==
PLAYER_ALL
then
...
@@ -140,7 +140,7 @@ function c60152903.e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -140,7 +140,7 @@ function c60152903.e2op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
,
d
,
REASON_EFFECT
,
true
)
Duel
.
RDComplete
()
Duel
.
RDComplete
()
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
c60152903
.
e2opfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
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