Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
227e0ec0
Commit
227e0ec0
authored
Mar 27, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b0e8c396
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
script/c9348522.lua
script/c9348522.lua
+19
-2
No files found.
script/c9348522.lua
View file @
227e0ec0
...
...
@@ -22,6 +22,24 @@ function c9348522.initial_effect(c)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c9348522
.
limtg
)
c
:
RegisterEffect
(
e2
)
if
not
c9348522
.
global_check
then
c9348522
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
ge1
:
SetOperation
(
c9348522
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
ge1
:
Clone
()
ge2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
function
c9348522
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
tc
:
RegisterFlagEffect
(
9348522
,
RESET_EVENT
+
0x1ec0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
=
eg
:
GetNext
()
end
end
function
c9348522
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
...
...
@@ -44,6 +62,5 @@ function c9348522.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c9348522
.
limtg
(
e
,
c
)
return
c
:
IsLevelBelow
(
8
)
and
c
:
IsStatus
(
STATUS_SUMMON_TURN
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_NORMAL
+
SUMMON_TYPE_SPECIAL
)
~=
0
return
c
:
IsLevelBelow
(
8
)
and
c
:
GetFlagEffect
(
9348522
)
~=
0
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