Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
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
GuGu
ygopro-THC-cards
Commits
7969ceac
Commit
7969ceac
authored
Jan 23, 2022
by
Grajade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c74561057.lua
parent
66cd6585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
script/c74561057.lua
script/c74561057.lua
+4
-7
No files found.
script/c74561057.lua
View file @
7969ceac
...
...
@@ -14,11 +14,9 @@ function cCardno.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--lv&atk up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
0
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cCardno
.
lvcon
)
e2
:
SetOperation
(
cCardno
.
lvop
)
c
:
RegisterEffect
(
e2
)
--disable
...
...
@@ -36,14 +34,13 @@ end
--disable
function
cCardno
.
disable
(
e
,
c
)
local
lv
=
e
:
GetHandler
():
GetLevel
()
local
tlv
=
c
:
GetLevel
()
if
not
tlv
and
c
:
IsType
(
TYPE_XYZ
)
then
tlv
=
c
:
GetRank
()
end
local
tlv
=
0
if
c
:
IsType
(
TYPE_XYZ
)
then
tlv
=
c
:
GetRank
()
else
tlv
=
c
:
GetLevel
()
end
return
lv
>
0
and
tlv
>
0
and
lv
%
tlv
==
0
end
--lv&atk up
function
cCardno
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
true
end
function
cCardno
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
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