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
1db00fe1
Commit
1db00fe1
authored
Sep 07, 2018
by
mercury233
Committed by
GitHub
Sep 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#721)
parent
5b007a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
c29616929.lua
c29616929.lua
+2
-18
No files found.
c29616929.lua
View file @
1db00fe1
...
@@ -9,27 +9,11 @@ function c29616929.initial_effect(c)
...
@@ -9,27 +9,11 @@ function c29616929.initial_effect(c)
e1
:
SetTarget
(
c29616929
.
target
)
e1
:
SetTarget
(
c29616929
.
target
)
e1
:
SetOperation
(
c29616929
.
activate
)
e1
:
SetOperation
(
c29616929
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
not
c29616929
.
global_check
then
c29616929
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetOperation
(
c29616929
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c29616929
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
GetFlagEffect
(
29616929
)
==
0
then
tc
:
RegisterFlagEffect
(
29616929
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
tc
=
eg
:
GetNext
()
end
end
end
function
c29616929
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29616929
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TRIGGERING_LOCATION
)
local
loc
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TRIGGERING_LOCATION
)
return
ep
~=
tp
and
loc
==
LOCATION_MZONE
and
re
:
GetHandler
():
GetFlagEffect
(
29616929
)
>
0
and
Duel
.
IsChainDisablable
(
ev
)
local
tc
=
re
:
GetHandler
()
return
tc
:
IsControler
(
1
-
tp
)
and
loc
==
LOCATION_MZONE
and
tc
:
IsStatus
(
STATUS_SPSUMMON_TURN
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c29616929
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29616929
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
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