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
Reinen
ygopro-scripts
Commits
bbf65a2d
Commit
bbf65a2d
authored
Jan 24, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update EFFECT_XYZ_LEVEL
parent
e481b3e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
c70156946.lua
c70156946.lua
+6
-4
c7150545.lua
c7150545.lua
+6
-4
No files found.
c70156946.lua
View file @
bbf65a2d
...
@@ -21,7 +21,11 @@ function c70156946.initial_effect(c)
...
@@ -21,7 +21,11 @@ function c70156946.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
c70156946
.
xyzlv
)
e3
:
SetValue
(
c70156946
.
xyzlv
)
e3
:
SetLabel
(
3
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetLabel
(
5
)
c
:
RegisterEffect
(
e4
)
end
end
function
c70156946
.
spfilter
(
c
,
e
,
tp
)
function
c70156946
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevelAbove
(
3
)
and
c
:
IsLevelBelow
(
5
)
and
not
c
:
IsCode
(
70156946
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevelAbove
(
3
)
and
c
:
IsLevelBelow
(
5
)
and
not
c
:
IsCode
(
70156946
)
...
@@ -53,10 +57,8 @@ function c70156946.splimit(e,c)
...
@@ -53,10 +57,8 @@ function c70156946.splimit(e,c)
return
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
function
c70156946
.
xyzlv
(
e
,
c
,
rc
)
function
c70156946
.
xyzlv
(
e
,
c
,
rc
)
if
rc
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
rc
:
IsRank
(
3
)
then
if
rc
:
IsAttribute
(
ATTRIBUTE_WATER
)
then
return
c
:
GetLevel
()
+
0x10000
*
3
return
c
:
GetLevel
()
+
0x10000
*
e
:
GetLabel
()
elseif
rc
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
rc
:
IsRank
(
5
)
then
return
c
:
GetLevel
()
+
0x10000
*
5
else
else
return
c
:
GetLevel
()
return
c
:
GetLevel
()
end
end
...
...
c7150545.lua
View file @
bbf65a2d
...
@@ -18,7 +18,11 @@ function c7150545.initial_effect(c)
...
@@ -18,7 +18,11 @@ function c7150545.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
c7150545
.
xyzlv
)
e2
:
SetValue
(
c7150545
.
xyzlv
)
e2
:
SetLabel
(
3
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetLabel
(
5
)
c
:
RegisterEffect
(
e3
)
end
end
function
c7150545
.
tgfilter
(
c
,
e
,
tp
)
function
c7150545
.
tgfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevelAbove
(
1
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevelAbove
(
1
)
...
@@ -66,10 +70,8 @@ function c7150545.splimit(e,c)
...
@@ -66,10 +70,8 @@ function c7150545.splimit(e,c)
return
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
function
c7150545
.
xyzlv
(
e
,
c
,
rc
)
function
c7150545
.
xyzlv
(
e
,
c
,
rc
)
if
rc
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
rc
:
IsRank
(
3
)
then
if
rc
:
IsAttribute
(
ATTRIBUTE_WATER
)
then
return
c
:
GetLevel
()
+
0x10000
*
3
return
c
:
GetLevel
()
+
0x10000
*
e
:
GetLabel
()
elseif
rc
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
rc
:
IsRank
(
5
)
then
return
c
:
GetLevel
()
+
0x10000
*
5
else
else
return
c
:
GetLevel
()
return
c
:
GetLevel
()
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