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
八宫一月
ygopro-scripts
Commits
0505eff0
Commit
0505eff0
authored
Jun 25, 2019
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 一族の結束
parent
98bf0b88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
c86780027.lua
c86780027.lua
+2
-19
No files found.
c86780027.lua
View file @
0505eff0
...
...
@@ -11,29 +11,12 @@ function c86780027.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetLabel
(
0
)
e2
:
SetTarget
(
c86780027
.
tg
)
e2
:
SetValue
(
800
)
c
:
RegisterEffect
(
e2
)
--adjust
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_ADJUST
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetOperation
(
c86780027
.
adjustop
)
c
:
RegisterEffect
(
e3
)
e3
:
SetLabelObject
(
e2
)
end
function
c86780027
.
tg
(
e
,
c
)
return
c
:
IsRace
(
e
:
GetLabel
())
end
function
c86780027
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_MONSTER
)
local
te
=
e
:
GetLabelObject
()
if
g
:
GetCount
()
==
0
then
te
:
SetLabel
(
0
)
else
local
ct
=
g
:
GetClassCount
(
Card
.
GetOriginalRace
)
if
ct
==
1
then
te
:
SetLabel
(
g
:
GetFirst
():
GetOriginalRace
())
else
te
:
SetLabel
(
0
)
end
end
if
g
:
GetCount
()
==
0
or
g
:
GetClassCount
(
Card
.
GetOriginalRace
)
>
1
then
return
false
end
return
c
:
IsRace
(
g
:
GetFirst
():
GetOriginalRace
())
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