Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
Commits
255b7cc4
Commit
255b7cc4
authored
Jul 14, 2020
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 一点着地, 亡龍の旋律
parent
6a83c67f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
18 deletions
+23
-18
c17322533.lua
c17322533.lua
+9
-6
c40971261.lua
c40971261.lua
+14
-12
No files found.
c17322533.lua
View file @
255b7cc4
...
@@ -21,11 +21,12 @@ function c17322533.initial_effect(c)
...
@@ -21,11 +21,12 @@ function c17322533.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--to grave
--to grave
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCode
(
EFFECT_SELF_TOGRAVE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c17322533
.
tgcon
)
e3
:
SetCondition
(
c17322533
.
tgcon
)
e3
:
SetOperation
(
c17322533
.
tgop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c17322533
.
filter
(
c
,
tp
)
function
c17322533
.
filter
(
c
,
tp
)
...
@@ -47,8 +48,10 @@ function c17322533.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,8 +48,10 @@ function c17322533.operation(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RegisterFlagEffect
(
17322533
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DRAW
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
17322533
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DRAW
,
0
,
1
)
end
end
end
end
function
c17322533
.
tgcon
(
e
)
function
c17322533
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_END
return
Duel
.
GetTurnPlayer
()
==
tp
and
e
:
GetHandler
():
GetFlagEffect
(
17322533
)
==
0
and
e
:
GetHandler
():
GetFlagEffect
(
17322533
)
==
0
end
function
c17322533
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c40971261.lua
View file @
255b7cc4
...
@@ -62,6 +62,7 @@ function c40971261.lpop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,6 +62,7 @@ function c40971261.lpop(e,tp,eg,ep,ev,re,r,rp)
local
p
=
e
:
GetLabelObject
():
GetLabel
()
local
p
=
e
:
GetLabelObject
():
GetLabel
()
Duel
.
Hint
(
HINT_CARD
,
0
,
40971261
)
Duel
.
Hint
(
HINT_CARD
,
0
,
40971261
)
Duel
.
SetLP
(
p
,
math.ceil
(
Duel
.
GetLP
(
p
)
/
2
))
Duel
.
SetLP
(
p
,
math.ceil
(
Duel
.
GetLP
(
p
)
/
2
))
if
c
:
GetFlagEffect
(
40971262
)
==
0
then
local
fid
=
c
:
GetFieldID
()
local
fid
=
c
:
GetFieldID
()
c
:
RegisterFlagEffect
(
40971262
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
c
:
RegisterFlagEffect
(
40971262
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -74,6 +75,7 @@ function c40971261.lpop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,6 +75,7 @@ function c40971261.lpop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c40971261
.
tgop
)
e1
:
SetOperation
(
c40971261
.
tgop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
function
c40971261
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40971261
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffectLabel
(
40971262
)
==
e
:
GetLabel
()
return
e
:
GetHandler
():
GetFlagEffectLabel
(
40971262
)
==
e
:
GetLabel
()
...
...
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