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
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-scripts
Commits
d676643a
Commit
d676643a
authored
Oct 27, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp fix
parent
cb1c66f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
c88851326.lua
c88851326.lua
+19
-0
No files found.
c88851326.lua
View file @
d676643a
...
@@ -117,9 +117,28 @@ function c88851326.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -117,9 +117,28 @@ function c88851326.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DRAW
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DRAW
)
e1
:
SetValue
(
0
)
e1
:
SetValue
(
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
cid
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_CHAIN_ID
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetLabel
(
cid
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DRAW
)
e2
:
SetCondition
(
c88851326
.
checkcon1
)
e2
:
SetOperation
(
c88851326
.
checkop1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
function
c88851326
.
checkcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cid
,
orig_effect
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
,
CHAININFO_TRIGGERING_EFFECT
)
return
cid
==
e
:
GetLabel
()
and
not
e
:
GetOwner
():
IsRelateToEffect
(
orig_effect
)
end
function
c88851326
.
checkop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
Reset
()
e
:
Reset
()
end
function
c88851326
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88851326
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_count
+
1
_replace_count
=
_replace_count
+
1
if
_replace_count
>
_replace_max
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
_replace_count
>
_replace_max
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
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