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
e629bc3e
Commit
e629bc3e
authored
Jun 12, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
77b486a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
c94599451.lua
c94599451.lua
+6
-5
No files found.
c94599451.lua
View file @
e629bc3e
...
@@ -32,6 +32,7 @@ function c94599451.initial_effect(c)
...
@@ -32,6 +32,7 @@ function c94599451.initial_effect(c)
e4
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e4
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetTarget
(
c94599451
.
reptg
)
e4
:
SetTarget
(
c94599451
.
reptg
)
e4
:
SetOperation
(
c94599451
.
repop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c94599451
.
ctfilter
(
c
)
function
c94599451
.
ctfilter
(
c
)
...
@@ -85,9 +86,9 @@ function c94599451.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,9 +86,9 @@ function c94599451.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c94599451
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94599451
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_EFFECT
)
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x1
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetCounter
(
0x1
)
>
0
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x1
,
1
,
REASON_EFFECT
+
REASON_REPLACE
)
end
return
true
function
c94599451
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
lse
return
false
end
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1
,
1
,
REASON_EFFECT
)
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