Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
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
MyCard
ygopro-rush-duel
Commits
97565159
Commit
97565159
authored
Oct 17, 2023
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/10/17 bug修复
parent
32cf8891
Pipeline
#23770
passed with stages
in 7 minutes and 4 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
28 deletions
+6
-28
script/c120238004.lua
script/c120238004.lua
+3
-14
script/c120238019.lua
script/c120238019.lua
+3
-14
No files found.
script/c120238004.lua
View file @
97565159
...
...
@@ -2,6 +2,7 @@ local m=120238004
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"合成魔兽 加泽特"
function
cm
.
initial_effect
(
c
)
RushDuel
.
CreateAdvanceSummonFlag
(
c
,
20238004
)
--Atk Up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -17,20 +18,9 @@ function cm.initial_effect(c)
e2
:
SetLabelObject
(
e1
)
e2
:
SetValue
(
cm
.
check
)
c
:
RegisterEffect
(
e2
)
--Summon Only
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SUMMON_COST
)
e3
:
SetOperation
(
cm
.
facechk
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
--Continuous Effect
RushDuel
.
AddContinuousEffect
(
c
,
e1
)
end
--Summon Only
function
cm
.
facechk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
SetLabel
(
1
)
end
--Material Check
function
cm
.
check
(
e
,
c
)
local
atk
=
0
...
...
@@ -40,8 +30,7 @@ function cm.check(e,c)
elseif
g
:
GetCount
()
==
2
then
atk
=
RD
.
GetBaseAttackOnTribute
(
g
:
GetFirst
())
+
RD
.
GetBaseAttackOnTribute
(
g
:
GetNext
())
end
if
atk
>
0
and
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
if
atk
>
0
then
e
:
GetLabelObject
():
SetLabel
(
atk
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
...
...
@@ -49,5 +38,5 @@ function cm.check(e,c)
end
--Atk Up
function
cm
.
atkval
(
e
,
c
)
if
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
then
return
e
:
GetLabel
()
else
return
0
end
if
c
:
GetFlagEffect
(
20238004
)
~=
0
then
return
e
:
GetLabel
()
else
return
0
end
end
\ No newline at end of file
script/c120238019.lua
View file @
97565159
...
...
@@ -2,6 +2,7 @@ local m=120238019
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"伟大魔兽 加泽特"
function
cm
.
initial_effect
(
c
)
RushDuel
.
CreateAdvanceSummonFlag
(
c
,
20238019
)
--Atk Up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -17,27 +18,15 @@ function cm.initial_effect(c)
e2
:
SetLabelObject
(
e1
)
e2
:
SetValue
(
cm
.
check
)
c
:
RegisterEffect
(
e2
)
--Summon Only
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SUMMON_COST
)
e3
:
SetOperation
(
cm
.
facechk
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
--Continuous Effect
RushDuel
.
AddContinuousEffect
(
c
,
e1
)
end
--Summon Only
function
cm
.
facechk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
SetLabel
(
1
)
end
--Material Check
function
cm
.
check
(
e
,
c
)
local
tc
=
c
:
GetMaterial
():
GetFirst
()
local
atk
=
0
if
tc
then
atk
=
RD
.
GetBaseAttackOnTribute
(
tc
)
*
2
end
if
atk
>
0
and
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
if
atk
>
0
then
e
:
GetLabelObject
():
SetLabel
(
atk
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
...
...
@@ -45,5 +34,5 @@ function cm.check(e,c)
end
--Atk Up
function
cm
.
atkval
(
e
,
c
)
if
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
then
return
e
:
GetLabel
()
else
return
0
end
if
c
:
GetFlagEffect
(
20238019
)
~=
0
then
return
e
:
GetLabel
()
else
return
0
end
end
\ No newline at end of file
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