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
16fa27f6
Commit
16fa27f6
authored
Mar 08, 2015
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
02396840
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
script/c11609969.lua
script/c11609969.lua
+5
-4
script/c74605254.lua
script/c74605254.lua
+4
-3
No files found.
script/c11609969.lua
View file @
16fa27f6
...
...
@@ -65,15 +65,16 @@ end
function
c11609969
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
GetLeftScale
()
==
1
then
return
end
local
scl
=
math.max
(
1
,
c
:
GetLeftScale
()
-
2
)
local
scl
=
2
if
c
:
GetLeftScale
()
==
2
then
scl
=
1
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_
CHANG
E_LSCALE
)
e1
:
SetValue
(
scl
)
e1
:
SetCode
(
EFFECT_
UPDAT
E_LSCALE
)
e1
:
SetValue
(
-
scl
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_
CHANG
E_RSCALE
)
e2
:
SetCode
(
EFFECT_
UPDAT
E_RSCALE
)
c
:
RegisterEffect
(
e2
)
local
g
=
Duel
.
GetMatchingGroup
(
c11609969
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
scl
)
if
g
:
GetCount
()
>
0
then
...
...
script/c74605254.lua
View file @
16fa27f6
...
...
@@ -66,15 +66,16 @@ end
function
c74605254
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
GetLeftScale
()
>=
10
then
return
end
local
scl
=
math.min
(
10
,
c
:
GetLeftScale
()
+
2
)
local
scl
=
2
if
c
:
GetLeftScale
()
==
9
then
scl
=
1
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_
CHANG
E_LSCALE
)
e1
:
SetCode
(
EFFECT_
UPDAT
E_LSCALE
)
e1
:
SetValue
(
scl
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_
CHANG
E_RSCALE
)
e2
:
SetCode
(
EFFECT_
UPDAT
E_RSCALE
)
c
:
RegisterEffect
(
e2
)
local
g
=
Duel
.
GetMatchingGroup
(
c74605254
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
scl
)
if
g
:
GetCount
()
>
0
then
...
...
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