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
4
Merge Requests
4
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
448cff80
Commit
448cff80
authored
Jun 10, 2023
by
Chen Bill
Committed by
GitHub
Jun 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 忘却の海底神殿 (#2091)
parent
e84b4122
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
23 deletions
+26
-23
c43889633.lua
c43889633.lua
+26
-23
No files found.
c43889633.lua
View file @
448cff80
...
@@ -20,6 +20,17 @@ function c43889633.initial_effect(c)
...
@@ -20,6 +20,17 @@ function c43889633.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--code
--code
aux
.
EnableChangeCode
(
c
,
22702055
)
aux
.
EnableChangeCode
(
c
,
22702055
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
43889633
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c43889633
.
spcon
)
e3
:
SetTarget
(
c43889633
.
sptg
)
e3
:
SetOperation
(
c43889633
.
spop
)
c
:
RegisterEffect
(
e3
)
end
end
function
c43889633
.
filter
(
c
)
function
c43889633
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_FISH
+
RACE_SEASERPENT
+
RACE_AQUA
)
and
c
:
IsAbleToRemove
()
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_FISH
+
RACE_SEASERPENT
+
RACE_AQUA
)
and
c
:
IsAbleToRemove
()
...
@@ -33,36 +44,28 @@ function c43889633.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,36 +44,28 @@ function c43889633.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c43889633
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43889633
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_FISH
+
RACE_SEASERPENT
+
RACE_AQUA
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
tc
:
RegisterFlagEffect
(
43889634
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
0
,
1
)
local
fid
=
e
:
GetHandler
():
GetFieldID
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
tc
:
RegisterFlagEffect
(
43889634
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
e1
:
SetDescription
(
aux
.
Stringid
(
43889633
,
2
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetCondition
(
c43889633
.
spcon
)
e1
:
SetTarget
(
c43889633
.
sptg
)
e1
:
SetOperation
(
c43889633
.
spop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
end
end
end
function
c43889633
.
spfilter
(
c
,
fid
)
return
c
:
GetFlagEffect
(
43889634
)
~=
0
and
c
:
GetFlagEffectLabel
(
43889634
)
==
fid
end
function
c43889633
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43889633
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
fid
=
e
:
GetHandler
():
GetFieldID
()
return
tc
and
tc
:
GetFlagEffect
(
43889634
)
~=
0
and
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
IsExistingMatchingCard
(
c43889633
.
spfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
fid
)
end
end
function
c43889633
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43889633
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
tc
=
e
:
GetLabelObject
()
local
fid
=
e
:
GetHandler
():
GetFieldID
()
Duel
.
SetTargetCard
(
tc
)
local
tg
=
Duel
.
GetMatchingGroup
(
c43889633
.
spfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
fid
)
e
:
SetLabelObject
(
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
tg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
tc
,
1
,
0
,
0
)
end
end
function
c43889633
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43889633
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
fid
=
e
:
GetHandler
():
GetFieldID
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
local
tg
=
Duel
.
GetMatchingGroup
(
c43889633
.
spfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
fid
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
#
tg
>
0
then
Duel
.
SpecialSummon
(
tg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
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