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
55833de7
Commit
55833de7
authored
Feb 25, 2015
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0be3c3b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
script/c63881033.lua
script/c63881033.lua
+22
-4
No files found.
script/c63881033.lua
View file @
55833de7
...
...
@@ -4,6 +4,8 @@ function c63881033.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c63881033
.
lvtg1
)
e1
:
SetOperation
(
c63881033
.
lvop
)
c
:
RegisterEffect
(
e1
)
--disable spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -17,10 +19,11 @@ function c63881033.initial_effect(c)
--lv change
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
63881033
,
0
))
e3
:
SetType
(
EFFECT_TYPE_
IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_
QUICK_O
)
e3
:
SetCountLimit
(
1
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTarget
(
c63881033
.
lvtg
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetTarget
(
c63881033
.
lvtg2
)
e3
:
SetOperation
(
c63881033
.
lvop
)
c
:
RegisterEffect
(
e3
)
--destroy replace
...
...
@@ -44,21 +47,36 @@ function c63881033.initial_effect(c)
e5
:
SetOperation
(
c63881033
.
thop
)
c
:
RegisterEffect
(
e5
)
end
function
c63881033
.
lvtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
IsExistingMatchingCard
(
c63881033
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
63881033
,
4
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
63881033
,
1
))
local
lv
=
Duel
.
AnnounceNumber
(
tp
,
5
,
6
,
7
,
8
,
9
)
e
:
SetLabel
(
lv
)
e
:
GetHandler
():
RegisterFlagEffect
(
63881033
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c63881033
.
splimit
(
e
,
c
)
return
c
:
GetRace
()
~=
RACE_MACHINE
end
function
c63881033
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsRace
(
RACE_MACHINE
)
end
function
c63881033
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c63881033
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c63881033
.
lvtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
63881033
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c63881033
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
63881033
,
1
))
local
lv
=
Duel
.
AnnounceNumber
(
tp
,
5
,
6
,
7
,
8
,
9
)
e
:
SetLabel
(
lv
)
e
:
GetHandler
():
RegisterFlagEffect
(
63881033
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c63881033
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
e
:
GetLabel
()
==
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c63881033
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
...
...
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