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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
5fd82c4c
Commit
5fd82c4c
authored
Oct 31, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
54188
parent
10e006e5
Pipeline
#30877
passed with stages
in 25 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
21 deletions
+10
-21
expansions/script/c18700098.lua
expansions/script/c18700098.lua
+10
-21
No files found.
expansions/script/c18700098.lua
View file @
5fd82c4c
...
...
@@ -20,12 +20,15 @@ function cm.initial_effect(c)
e2
:
SetCondition
(
cm
.
handcon
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
e
:
SetLabel
(
0
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
aux
.
NegateMonsterFilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
NegateMonsterF
ilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
DISABLE
)
Duel
.
SelectTarget
(
tp
,
aux
.
NegateMonsterF
ilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
thf
ilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
OPERATECARD
)
Duel
.
SelectTarget
(
tp
,
cm
.
thf
ilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
e
:
GetHandler
():
IsStatus
(
STATUS_ACT_FROM_HAND
)
then
e
:
SetLabel
(
100
)
end
...
...
@@ -33,12 +36,11 @@ end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledByEffect
(
e
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_PIERCE
)
c
:
RegisterEffect
(
e1
)
t
c
:
RegisterEffect
(
e1
)
if
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -67,19 +69,6 @@ end
function
cm
.
fuslimit
(
e
,
c
,
sumtype
)
return
sumtype
==
SUMMON_TYPE_FUSION
end
function
cm
.
distg
(
e
,
c
)
local
seq
,
fid
=
e
:
GetLabel
()
local
tp
=
e
:
GetHandlerPlayer
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
aux
.
GetColumn
(
c
,
tp
)
==
seq
and
c
:
GetFieldID
()
~=
fid
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tseq
=
e
:
GetLabel
()
local
controller
,
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_CONTROLER
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
if
loc
&
LOCATION_SZONE
~=
0
and
seq
<=
4
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
((
controller
==
tp
and
seq
==
tseq
)
or
(
controller
==
1
-
tp
and
seq
==
4
-
tseq
))
then
Duel
.
NegateEffect
(
ev
)
end
end
function
cm
.
handcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
==
0
end
...
...
@@ -93,7 +82,7 @@ function cm.skipop(e,tp)
e1
:
SetTargetRange
(
1
,
0
)
if
Duel
.
GetTurnPlayer
()
==
tp
and
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
s
.
skipcon
)
e1
:
SetCondition
(
cm
.
skipcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
+
RESET_SELF_TURN
,
2
)
else
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
+
RESET_SELF_TURN
,
1
)
...
...
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