Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
81c33c49
Commit
81c33c49
authored
May 16, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ac738046
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
script/c10960419.lua
script/c10960419.lua
+14
-5
No files found.
script/c10960419.lua
View file @
81c33c49
...
@@ -77,24 +77,33 @@ function c10960419.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,24 +77,33 @@ function c10960419.rmop(e,tp,eg,ep,ev,re,r,rp)
tc
:
SetTurnCounter
(
0
)
tc
:
SetTurnCounter
(
0
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
_START
+
PHASE_DRAW
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_STANDBY
,
ct
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_STANDBY
,
ct
)
e1
:
SetLabel
(
ct
)
e1
:
SetLabel
(
ct
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetOperation
(
c10960419
.
ret
op
)
e1
:
SetOperation
(
c10960419
.
turn
op
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetOperation
(
c10960419
.
retop
)
Duel
.
RegisterEffect
(
e2
,
tp
)
tc
:
RegisterFlagEffect
(
1082946
,
RESET_PHASE
+
RESET_STANDBY
,
0
,
ct
)
tc
:
RegisterFlagEffect
(
1082946
,
RESET_PHASE
+
RESET_STANDBY
,
0
,
ct
)
c10960419
[
tc
]
=
e1
local
mt
=
_G
[
"c"
..
tc
:
GetCode
()]
mt
[
tc
]
=
e1
end
end
end
end
end
end
function
c10960419
.
ret
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10960419
.
turn
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
local
ct
=
tc
:
GetTurnCounter
()
local
ct
=
tc
:
GetTurnCounter
()
ct
=
ct
+
1
ct
=
ct
+
1
tc
:
SetTurnCounter
(
ct
)
tc
:
SetTurnCounter
(
ct
)
if
ct
==
e
:
GetLabel
()
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
end
function
c10960419
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
ct
=
tc
:
GetTurnCounter
()
if
ct
==
e
:
GetLabel
()
then
Duel
.
ReturnToField
(
tc
)
Duel
.
ReturnToField
(
tc
)
end
end
if
ct
>=
e
:
GetLabel
()
then
if
ct
>=
e
:
GetLabel
()
then
...
...
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